aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authordjones <dgjones@gmail.com>2010-11-22 16:35:57 +1300
committerdjones <dgjones@gmail.com>2010-11-22 16:35:57 +1300
commit9bff563c4f1de5cefb6b045c4b412f6a1b81268e (patch)
tree10cee9376ac0a46798670411d18985bf7e8f21bf /app
parenta45885bcd30c96acadaa9a8ad011c20902035d0f (diff)
downloadrefinerycms-blog-9bff563c4f1de5cefb6b045c4b412f6a1b81268e.tar.gz
refinerycms-blog-9bff563c4f1de5cefb6b045c4b412f6a1b81268e.tar.bz2
refinerycms-blog-9bff563c4f1de5cefb6b045c4b412f6a1b81268e.zip
include the blog helper in all blog front end controllers. Also fix kend error on show.html.erb for front end blog viewing
Diffstat (limited to 'app')
-rw-r--r--app/controllers/blog_controller.rb1
-rw-r--r--app/views/blog/posts/show.html.erb5
2 files changed, 4 insertions, 2 deletions
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? %>
- <script src="http://w.sharethis.com/button/buttons.js"></script>
- <script>stLight.options({publisher:'<%= BlogPost::ShareThis.key %>'});</script>
+ <script src="http://w.sharethis.com/button/buttons.js"></script>
+ <script>stLight.options({publisher:'<%= BlogPost::ShareThis.key %>'});</script>
+ <% end %>
<% end %>
<% else %>
<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %>