Sha256: b4957a0d2e94cacf764f41ceac398ebb5cbc2fa96914ae118417f756f66550a5
Contents?: true
Size: 1.62 KB
Versions: 4
Compression:
Stored size: 1.62 KB
Contents
!!! %html %head %title Fnordmetric Dashboard %script(type="text/javascript" src="#{path_prefix}/vendor/jquery-1.6.1.min.js") %script(type="text/javascript" src="#{path_prefix}/vendor/highcharts.js") %script(type="text/javascript" src="#{path_prefix}/fnordmetric.js") %link(type="text/css" rel="stylesheet" href="#{path_prefix}/fnordmetric.css") :javascript FnordMetric.p = '#{path_prefix}'; %body .topbar #wrap #tabs %ul %li.active.sessions .picto.piechart Active Users -current_namespace.dashboards.each do |key,dashboard| %li.dashboard{:rel => dashboard.token} .picto.piechart =h dashboard.title #viewport .viewport_inner.clearfix :javascript $(document).ready(function(){ FnordMetric.init('#{current_namespace.token}', $('.viewport_inner')); $('#tabs li.dashboard').click(function(){ FnordMetric.renderDashboard($(this).attr('rel')); window.location.hash = $(this).attr('rel'); }); $('#tabs li.sessions').click(function(){ FnordMetric.renderSessionView(); }); $('#tabs li').click(function(){ $(this).addClass('active').siblings().removeClass('active'); }); function resizeViewport(){ var viewport_width = window.innerWidth-220 $('#viewport').width(viewport_width); FnordMetric.resizeView(); } resizeViewport(); $(window).resize(resizeViewport); if(window.location.hash){ $('#tabs li.dashboard[rel="'+window.location.hash.slice(1)+'"]').trigger('click'); } });
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fnordmetric-0.5.5 | haml/app.haml |
fnordmetric-0.5.4 | haml/app.haml |
fnordmetric-0.5.3 | haml/app.haml |
fnordmetric-0.5.2 | haml/app.haml |