git_stats/templates/layout.haml

46 lines
1.7 KiB
Text
Raw Normal View History

2012-10-08 18:21:42 +02:00
!!! XML
!!!
%html
%head
2012-10-13 14:01:46 +02:00
%title= "GitStats - #{repo.project_name}"
2012-10-08 18:21:42 +02:00
%link{:rel => "stylesheet", :href => "assets/bootstrap/css/bootstrap.min.css", :type => "text/css"}
2012-10-08 19:56:49 +02:00
%style
:plain
body { padding-top: 60px; }
2012-10-08 18:21:42 +02:00
%link{:rel => "stylesheet", :href => "assets/bootstrap/css/bootstrap-responsive.min.css", :type => "text/css"}
%script{:src => "assets/jquery.min.js", :type => "text/javascript"}
%script{:src => "assets/bootstrap/js/bootstrap.min.js", :type => "text/javascript"}
2012-10-08 21:12:42 +02:00
%script{:src => "assets/highstock.js", :type => "text/javascript"}
2012-10-21 14:16:34 +02:00
%script
:plain
$(function() {
$('.tabbable ul a').click(function (e) {
e.preventDefault();
$(this).tab('show');
2012-10-21 20:26:40 +02:00
var ev = document.createEvent('Event');
2012-10-21 21:33:44 +02:00
ev.initEvent('resize', true, true);
2012-10-21 20:26:40 +02:00
window.dispatchEvent(ev);
2012-10-21 20:05:12 +02:00
});
$('.modal').on('shown', function (e) {
2012-10-21 20:26:40 +02:00
var ev = document.createEvent('Event');
2012-10-21 21:33:44 +02:00
ev.initEvent('resize', true, true);
2012-10-21 20:26:40 +02:00
window.dispatchEvent(ev);
2012-10-21 20:05:12 +02:00
});
2012-10-21 14:16:34 +02:00
});
2012-10-08 18:21:42 +02:00
%body
2012-10-21 14:36:13 +02:00
%div.navbar.navbar-fixed-top
2012-10-08 18:21:42 +02:00
%div.navbar-inner
%div.container
%a.btn.btn-navbar{'data-toggle' => "collapse", 'data-target' => ".nav-collapse"}
%span.icon-bar
%span.icon-bar
%span.icon-bar
2012-10-13 14:01:46 +02:00
%a.brand{:href => "index.html"}= "GitStats - #{repo.project_name}"
2012-10-08 18:21:42 +02:00
%div.nav-collapse.collapse
%ul.nav
2012-10-13 14:01:46 +02:00
- all_templates.each do |link|
%li{:class => active_page == link ? "active" : ""}
%a{:href => "#{link}.html"}= link.capitalize
2012-10-08 18:21:42 +02:00
%div.container
= yield