aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/blog/posts/_nav.html.erb
diff options
context:
space:
mode:
authorJoe Sak <joe@joesak.com>2010-11-20 13:59:27 -0600
committerJoe Sak <joe@joesak.com>2010-11-20 13:59:27 -0600
commit2f94c8c08aec64403fdecf3a13d20dc35a595fb5 (patch)
treea241d59d20989fab950cc3500c22a5a23fc6f220 /app/views/blog/posts/_nav.html.erb
parentcab02942d0838219ea491f61bbb3c647221e0531 (diff)
downloadrefinerycms-blog-2f94c8c08aec64403fdecf3a13d20dc35a595fb5.tar.gz
refinerycms-blog-2f94c8c08aec64403fdecf3a13d20dc35a595fb5.tar.bz2
refinerycms-blog-2f94c8c08aec64403fdecf3a13d20dc35a595fb5.zip
ajaxify the nav
Diffstat (limited to 'app/views/blog/posts/_nav.html.erb')
-rw-r--r--app/views/blog/posts/_nav.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/blog/posts/_nav.html.erb b/app/views/blog/posts/_nav.html.erb
new file mode 100644
index 0000000..6a36a10
--- /dev/null
+++ b/app/views/blog/posts/_nav.html.erb
@@ -0,0 +1,3 @@
+<%= link_to raw(truncate(@blog_post.next.title) + "&nbsp;&#187;"), @blog_post.next, :class => 'next', :"data-nav-url" => update_blog_nav_path(@blog_post.next) if @blog_post.next.present? %>
+<%= link_to 'Blog Home', blog_root_path, :class => 'home' %>
+<%= link_to "&#171;&nbsp;".html_safe + truncate(@blog_post.prev.title), @blog_post.prev, :class => 'prev', :"data-nav-url" => update_blog_nav_path(@blog_post.prev) if @blog_post.prev.present? %> \ No newline at end of file