aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/posts/_nav.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/blog/posts/_nav.html.erb')
-rw-r--r--app/views/refinery/blog/posts/_nav.html.erb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/refinery/blog/posts/_nav.html.erb b/app/views/refinery/blog/posts/_nav.html.erb
new file mode 100644
index 0000000..df4b435
--- /dev/null
+++ b/app/views/refinery/blog/posts/_nav.html.erb
@@ -0,0 +1,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 -->