aboutsummaryrefslogblamecommitdiffstats
path: root/app/views/refinery/blog/posts/_nav.html.erb
blob: 9e87e6e8b5ba2fbf6beafacfc80acd175fde6f22 (plain) (tree)
1
2
3
4
5
6
7
8
9
                            
                               
                                                                       
                                                     
                                   
            
 
                                                                    
                                       
                                 
 
                               
                                                                       
                                                     
                                   

                                 
<nav id="next_prev_article">
  <% if @post.next.present? -%>
    <%= link_to (h(truncate(@post.next.title)) + " &#187;").html_safe, 
                refinery.blog_post_path(@post.next), 
                :class => 'next' %>
  <% end -%>

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

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