app/views/blog/posts/_post.html.erb in refinerycms-blog-1.3.2 vs app/views/blog/posts/_post.html.erb in refinerycms-blog-1.4.0
- old
+ new
@@ -12,11 +12,11 @@
</time><%= " by #{@blog_post.author.username}" if @blog_post.author.present? %>
<% if (categories = @blog_post.categories).any? %>
<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 %>
</details>
</header>
@@ -25,8 +25,6 @@
<% if BlogPost::ShareThis.enabled? %>
<span class="st_sharethis" displayText="ShareThis"></span>
<% 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) %>