diff options
author | Joe Sak <joe@joesak.com> | 2011-06-03 12:31:42 -0700 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-06-03 12:31:42 -0700 |
commit | 5f31b50b61f6601a18f62a83f2a36a5a0452684c (patch) | |
tree | e4e63cfaab98d7e46f036ece473003a06bbd1b04 /app/views | |
parent | 7c36aa87f0f9154638d90191e07d6888b5d39343 (diff) | |
parent | aefcf291a9ae3e1d81ec1dd9888c9feb71f532ed (diff) | |
download | refinerycms-blog-5f31b50b61f6601a18f62a83f2a36a5a0452684c.tar.gz refinerycms-blog-5f31b50b61f6601a18f62a83f2a36a5a0452684c.tar.bz2 refinerycms-blog-5f31b50b61f6601a18f62a83f2a36a5a0452684c.zip |
Merge pull request #72 from ugisozols/master
Remove old code. (SO into this)
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/blog/_submenu.html.erb | 11 | ||||
-rw-r--r-- | app/views/admin/blog/comments/show.html.erb | 7 | ||||
-rw-r--r-- | app/views/admin/blog/posts/_form.html.erb | 11 | ||||
-rw-r--r-- | app/views/blog/posts/show.html.erb | 29 |
4 files changed, 14 insertions, 44 deletions
diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb index b93e30d..9d06898 100644 --- a/app/views/admin/blog/_submenu.html.erb +++ b/app/views/admin/blog/_submenu.html.erb @@ -88,12 +88,5 @@ </ul> </nav> -<% if Refinery.version < '0.9.9' %> - <% content_for :head do %> - <%= stylesheet_link_tag('refinery/refinerycms-blog') %> - <%# this javascript is not even required in >= 0.9.9 because we made this sort of menu core. %> - <%= javascript_include_tag('refinery/refinerycms-blog') %> - <% end %> -<% else %> - <% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog')%> -<% end %> + +<% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog')%> diff --git a/app/views/admin/blog/comments/show.html.erb b/app/views/admin/blog/comments/show.html.erb index 4faa2de..d4c2186 100644 --- a/app/views/admin/blog/comments/show.html.erb +++ b/app/views/admin/blog/comments/show.html.erb @@ -59,8 +59,5 @@ </tr> </table> </div> -<% if Refinery.version < '0.9.9' %> - <% content_for :head, stylesheet_link_tag('refinery/refinerycms-blog') %> -<% else %> - <% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog') %> -<% end %> + +<% content_for :stylesheets, stylesheet_link_tag('refinery/refinerycms-blog') %> diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb index 7d95052..24b14ba 100644 --- a/app/views/admin/blog/posts/_form.html.erb +++ b/app/views/admin/blog/posts/_form.html.erb @@ -86,12 +86,5 @@ } %> <% end -%> -<% if Refinery.version < '0.9.9' %> - <% content_for :head do %> - <%= render :partial => 'form.css' %> - <%= render :partial => 'form.js' %> - <% end %> -<% else %> - <% content_for :stylesheets, render(:partial => 'form.css') -%> - <% content_for :javascripts, render(:partial => 'form.js') -%> -<% end %> +<% content_for :stylesheets, render(:partial => 'form.css') -%> +<% content_for :javascripts, render(:partial => 'form.js') -%> diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb index 92898a4..97b8af2 100644 --- a/app/views/blog/posts/show.html.erb +++ b/app/views/blog/posts/show.html.erb @@ -57,24 +57,11 @@ <%= render :partial => "/shared/content_page", :locals => { :remove_automatic_sections => true } %> -<% if Refinery.version < '0.9.9' %> - <% content_for :head_libraries, jquery_include_tags(:jquery_ui => false) %> - <% content_for :head do %> - <%= stylesheet_link_tag 'refinerycms-blog' %> - <%# enable AJAX'd post nav at your own risk until html5 history API implemented. %> - <%#= 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> - <% end %> - <% end %> -<% else %> - <% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %> - <% content_for :before_javascript_libraries, jquery_include_tags(:jquery_ui => false) %> - <% content_for :javascripts do %> - <%# enable AJAX'd post nav at your own risk until html5 history API implemented. %> - <%#= javascript_include_tag('refinerycms-blog') %> - <script src="http://w.sharethis.com/button/buttons.js"></script> - <script>stLight.options({publisher:'<%= BlogPost::ShareThis.key %>'});</script> - <% end if BlogPost::ShareThis.enabled? %> -<% end %> +<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %> +<% content_for :before_javascript_libraries, jquery_include_tags(:jquery_ui => false) %> +<% content_for :javascripts do %> + <%# enable AJAX'd post nav at your own risk until html5 history API implemented. %> + <%#= javascript_include_tag('refinerycms-blog') %> + <script src="http://w.sharethis.com/button/buttons.js"></script> + <script>stLight.options({publisher:'<%= BlogPost::ShareThis.key %>'});</script> +<% end if BlogPost::ShareThis.enabled? %> |