diff options
author | suweller <me@suweller.com> | 2010-11-21 13:30:23 +0100 |
---|---|---|
committer | suweller <me@suweller.com> | 2010-11-21 13:30:23 +0100 |
commit | affa60ef2a503bf68181c25f1507381723be92a1 (patch) | |
tree | 151edea13a8faeee723db340f1ac7579c6f0c9b4 /app/views | |
parent | 5cdb29dfe832f30f96f2459d1092ba56c6b3e862 (diff) | |
download | refinerycms-blog-affa60ef2a503bf68181c25f1507381723be92a1.tar.gz refinerycms-blog-affa60ef2a503bf68181c25f1507381723be92a1.tar.bz2 refinerycms-blog-affa60ef2a503bf68181c25f1507381723be92a1.zip |
place all script occurrences in content_for :javascripts
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/blog/_submenu.html.erb | 4 | ||||
-rw-r--r-- | app/views/admin/blog/comments/show.html.erb | 2 | ||||
-rw-r--r-- | app/views/blog/posts/show.html.erb | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb index 5c93891..c7da051 100644 --- a/app/views/admin/blog/_submenu.html.erb +++ b/app/views/admin/blog/_submenu.html.erb @@ -80,5 +80,7 @@ </nav> <% content_for :head do %> <%= stylesheet_link_tag 'refinery/refinerycms-blog' %> +<% end %> +<% content_for :javascripts do %> <%= javascript_include_tag 'refinery/refinerycms-blog' %> -<% end %>
\ No newline at end of file +<% end %> diff --git a/app/views/admin/blog/comments/show.html.erb b/app/views/admin/blog/comments/show.html.erb index 1cc29bb..21cb405 100644 --- a/app/views/admin/blog/comments/show.html.erb +++ b/app/views/admin/blog/comments/show.html.erb @@ -60,4 +60,4 @@ </table> </div> -<% content_for :head, stylesheet_link_tag('refinery/refinerycms-blog') %>
\ No newline at end of file +<% content_for :head, stylesheet_link_tag('refinery/refinerycms-blog') %> diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb index f8d4b35..d959956 100644 --- a/app/views/blog/posts/show.html.erb +++ b/app/views/blog/posts/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :head do %> +<% content_for :javascripts do %> <% if BlogPost::ShareThis.enabled? %> <script src="http://w.sharethis.com/button/buttons.js"></script> <script> @@ -92,4 +92,4 @@ <% end %> <%= render :partial => "/shared/content_page", :locals => { :remove_automatic_sections => true } %> -<% content_for :head, stylesheet_link_tag('refinerycms-blog') %>
\ No newline at end of file +<% content_for :head, stylesheet_link_tag('refinerycms-blog') %> |