aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-04-02 12:10:42 +1300
committerPhilip Arndt <parndt@gmail.com>2011-04-02 12:10:42 +1300
commit0d76f30fa384586e6ca18913c0604f4fb9db25aa (patch)
tree90303a59ff9d6a7be7073359fe78d0ae54a50718 /app
parent0f789a77a5f52544322d2eda0b36e9981990360d (diff)
downloadrefinerycms-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.erb6
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) %>