aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/posts/_nav.html.erb
blob: 67aed146eba47e39a3981f506773103516a4a1e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<nav id="next_prev_article">
  <% if @blog_post.next.present? -%>
    <%= link_to (truncate(@blog_post.next.title) + " &#187;").html_safe, 
                main_app.url_for(@blog_post.next), 
                :class => 'next' %>
  <% end -%>

  <%= link_to t('blog_home', :scope => 'refinery.blog.posts.show'), 
              main_app.blog_root_path, 
              :class => 'home' %>

  <% if @blog_post.prev.present? -%>
    <%= link_to ("&#171; " + truncate(@blog_post.prev.title)).html_safe, 
                main_app.url_for(@blog_post.prev), 
                :class => 'prev' %>
  <% end -%>
</nav><!-- /next_prev_article -->