aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/_nav.html.erb
blob: c73a294948d4d14f9619c102a4736b2d3a0aa128 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
<nav id="next_prev_article">
  <% if @blog_post.next.present? -%>
    <%= link_to (truncate(@blog_post.next.title) + " &#187;").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 ("&#171; " + truncate(@blog_post.prev.title)).html_safe, @blog_post.prev, :class => 'prev' %>
  <% end -%>
</nav><!-- /next_prev_article -->