Sha256: f09bdb94aeeb5c17992857e00507ee0494ad5247dfc503ce62723a0f2fc2389a
Contents?: true
Size: 1.4 KB
Versions: 1
Compression:
Stored size: 1.4 KB
Contents
!!! %html %head %title Batsd Dash %meta{"http-equiv" => "Content-Type", :content => "text/html; charset=utf-8"} %meta{:name => :author, :content => 'http://breakbase.com'} -# shitload of deps for a datetimepicker :( (TODO use d3 only) %link{:rel => 'stylesheet', :href => '/css/jquery-ui.css', :type => 'text/css'} %link{:rel => 'stylesheet', :href => '/css/datetimepicker.css', :type => 'text/css'} %link{:rel => 'stylesheet', :href => '/css/d3.css', :type => 'text/css'} %link{:rel => 'stylesheet', :href => '/css/public.css', :type => 'text/css'} %script{:src => '/js/jquery.js'} %script{:src => '/js/jquery-ui.js'} %script{:src => '/js/datetimepicker.js'} %script{:src => '/js/d3.js'} %script{:src => '/js/nv.d3.js'} %script{:src => '/js/dash.js'} %body #header .wrap %h1 %a{:href => '/'} Batsd Dash #content = yield - if locals && locals[:user_template] = haml :loading, layout: false :javascript (function(dash){ d3.selectAll('.graph').each(function(){ var params = {}; d3.map(this.dataset).forEach(function(key, val){ if (key != 'start' && key != 'stop') val = val.split(/\s+/); params[key] = val; }); BatsdDash.render(d3.select(this), LocationHash.build(params)); }); }());
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
batsd-dash-0.5.0 | lib/batsd-dash/views/layout.haml |