Skip to content

Commit

Permalink
mild refactor, one line if statement and decreased an indent one level.
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Apr 1, 2011
1 parent 0f789a7 commit 0d76f30
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/views/blog/posts/_post.html.erb
Expand Up @@ -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 %>
Expand All @@ -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) %>

0 comments on commit 0d76f30

Please sign in to comment.