aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/blog/posts/_nav.html.erb
blob: df4b4355efb178cda54831c8988b9d91a6236187 (plain) (tree)
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_home', :scope => 'blog.posts.show'), 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 -->