blob: c73a294948d4d14f9619c102a4736b2d3a0aa128 (
plain) (
tree)
|
|
<nav id="next_prev_article">
<% if @blog_post.next.present? -%>
<%= link_to (truncate(@blog_post.next.title) + " »").html_safe, @blog_post.next, :class => 'next' %>
<% end -%>
<%= link_to t('blog.posts.show.blog_home'), blog_root_path, :class => 'home' %>
<% if @blog_post.prev.present? -%>
<%= link_to ("« " + truncate(@blog_post.prev.title)).html_safe, @blog_post.prev, :class => 'prev' %>
<% end -%>
</nav><!-- /next_prev_article -->
|