Browse files

some layout code cleanup

  • Loading branch information...
1 parent c355433 commit b5e3071e13c9828048f27f4dea914533ce53e485 @timoschilling timoschilling committed Sep 23, 2012
Showing with 4 additions and 5 deletions.
  1. +4 −5 app/views/layouts/dj_mon.html.haml
View
9 app/views/layouts/dj_mon.html.haml
@@ -2,9 +2,11 @@
%html
%head{:lang => "en"}
%meta{:name => "apple-itunes-app", :content => "app-id=552732872"}
- = stylesheet_link_tag "dj_mon/dj_mon", :media => "screen, projection"
+ %script
+ var dj_counts_dj_reports_url = "#{dj_counts_dj_reports_url}"
= javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
= javascript_include_tag "dj_mon/dj_mon"
+ = stylesheet_link_tag "dj_mon/dj_mon", :media => "screen, projection"
= yield :head
%body
@@ -15,7 +17,7 @@
.pull-left
= link_to "DJ Mon", dj_reports_url, :class => "brand"
.pull-right
- = link_to "Settings", "#dj_settings_template", :rel => 'modal', 'data-content'=> "#{DjMon::DjReport.settings.to_json}", :id => 'settings', :class => 'btn btn-primary btn-mini'
+ = link_to "Settings", "#dj_settings_template", :rel => 'modal', "data-content" => DjMon::DjReport.settings.to_json, :id => "settings", :class => "btn btn-primary btn-mini"
.pull-right
#dj-counts-view
@@ -28,9 +30,6 @@
.container
= yield
- %script
- var dj_counts_dj_reports_url = "#{dj_counts_dj_reports_url}"
-
%script#dj_counts_template{ :type=> "text/x-handlebars-template" }
%span.badge.badge-warning
{{failed}} failed

0 comments on commit b5e3071

Please sign in to comment.