diff options
author | Philip Arndt <parndt@gmail.com> | 2011-04-02 12:10:42 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2011-04-02 12:10:42 +1300 |
commit | 0d76f30fa384586e6ca18913c0604f4fb9db25aa (patch) | |
tree | 90303a59ff9d6a7be7073359fe78d0ae54a50718 /app | |
parent | 0f789a77a5f52544322d2eda0b36e9981990360d (diff) | |
download | refinerycms-blog-0d76f30fa384586e6ca18913c0604f4fb9db25aa.tar.gz refinerycms-blog-0d76f30fa384586e6ca18913c0604f4fb9db25aa.tar.bz2 refinerycms-blog-0d76f30fa384586e6ca18913c0604f4fb9db25aa.zip |
mild refactor, one line if statement and decreased an indent one level.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/blog/posts/_post.html.erb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb index d1c204e..f589a33 100644 --- a/app/views/blog/posts/_post.html.erb +++ b/app/views/blog/posts/_post.html.erb @@ -14,7 +14,7 @@ <aside class='filed_in'> <%= t('blog.posts.show.filed_in') %> <% categories.each_with_index do |category, index| %> - <%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %> + <%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %> <% end %> </aside> <% end %> @@ -27,6 +27,4 @@ <% end %> </article> <%= render :partial => '/shared/draft_page_message' unless @blog_post.nil? or @blog_post.live? -%> -<% if next_or_previous?(@blog_post) -%> - <%= render 'nav' %> -<% end -%> +<%= render 'nav' if next_or_previous?(@blog_post) %> |