From da581331c706f46dfd119d1e532152c93fdd8c58 Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Sat, 20 Nov 2010 15:38:28 -0600 Subject: total refactor here --- app/controllers/blog/posts_controller.rb | 4 ---- app/views/blog/posts/_post.html.erb | 7 ++++++- app/views/blog/posts/show.html.erb | 5 ----- 3 files changed, 6 insertions(+), 10 deletions(-) (limited to 'app') diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb index 10ec867..95ccbbe 100644 --- a/app/controllers/blog/posts_controller.rb +++ b/app/controllers/blog/posts_controller.rb @@ -28,10 +28,6 @@ class Blog::PostsController < BlogController end end end - - def update_nav - render :partial => 'nav' - end def comment if (@blog_comment = @blog_post.comments.create(params[:blog_comment])).valid? diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb index f34091a..c5e90bb 100644 --- a/app/views/blog/posts/_post.html.erb +++ b/app/views/blog/posts/_post.html.erb @@ -20,4 +20,9 @@ <% if BlogPost::ShareThis.enabled? %> <% end %> - \ No newline at end of file + +<% if next_or_previous?(@blog_post) -%> + +<% end -%> \ No newline at end of file diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb index d277ef5..1c725d5 100644 --- a/app/views/blog/posts/show.html.erb +++ b/app/views/blog/posts/show.html.erb @@ -10,11 +10,6 @@ <% content_for :body_content_left do %>
<%= render 'post' %> - <% if next_or_previous?(@blog_post) -%> - - <% end -%>
<% if BlogPost.comments_allowed? %> -- cgit v1.2.3