From 9bff563c4f1de5cefb6b045c4b412f6a1b81268e Mon Sep 17 00:00:00 2001 From: djones Date: Mon, 22 Nov 2010 16:35:57 +1300 Subject: include the blog helper in all blog front end controllers. Also fix kend error on show.html.erb for front end blog viewing --- app/controllers/blog_controller.rb | 1 + app/views/blog/posts/show.html.erb | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/controllers/blog_controller.rb b/app/controllers/blog_controller.rb index 0931cbd..2efeaa4 100644 --- a/app/controllers/blog_controller.rb +++ b/app/controllers/blog_controller.rb @@ -1,5 +1,6 @@ class BlogController < ApplicationController + helper :blog_posts before_filter :find_page, :find_all_blog_categories protected diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb index 603a44f..e6710a2 100644 --- a/app/views/blog/posts/show.html.erb +++ b/app/views/blog/posts/show.html.erb @@ -71,8 +71,9 @@ <%= stylesheet_link_tag 'refinerycms-blog' %> <%= javascript_include_tag('refinerycms-blog') %> <% if BlogPost::ShareThis.enabled? %> - - + + + <% end %> <% end %> <% else %> <% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %> -- cgit v1.2.3