app/views/layouts/cms.html.haml in honey-cms-0.3.13 vs app/views/layouts/cms.html.haml in honey-cms-0.4.0
- old
+ new
@@ -3,14 +3,16 @@
%head
= stylesheet_link_tag 'cms', media: 'all'
- if Rails.application.assets.find_asset('cms_additions.css').present?
= stylesheet_link_tag 'cms_additions', media: 'all'
= javascript_include_tag 'application'
+ - if Rails.application.assets.find_asset('cms_additions.js').present?
+ = javascript_include_tag 'cms_additions', media: 'all'
= stylesheet_link_tag 'codemirror'
= javascript_include_tag 'cms'
= csrf_meta_tags
- %body.cms
+ %body.cms{class: "#{if defined?(subject) then subject.name.underscore.dasherize end}"}
.navbar.navbar-fixed-top.main-navigation
.navbar-inner
.container
%button.btn.btn-navbar{type: 'button', :'data-toggle' => 'collapse', :'data-target' => '.nav-collapse'}
%span.icon-bar