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-22 19:50:31 +02:00
|
|
|
%link{:rel => "stylesheet", :href => asset_path('bootstrap/css/bootstrap.min.css', active_page), :type => "text/css"}
|
2012-10-08 19:56:49 +02:00
|
|
|
%style
|
|
|
|
:plain
|
|
|
|
body { padding-top: 60px; }
|
2012-10-22 19:50:31 +02:00
|
|
|
%link{:rel => "stylesheet", :href => asset_path('bootstrap/css/bootstrap-responsive.min.css', active_page), :type => "text/css"}
|
|
|
|
%script{:src => asset_path('jquery.min.js', active_page), :type => "text/javascript"}
|
|
|
|
%script{:src => asset_path('bootstrap/js/bootstrap.min.js', active_page), :type => "text/javascript"}
|
|
|
|
%script{:src => asset_path('highstock.js', active_page), :type => "text/javascript"}
|
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-22 19:50:31 +02:00
|
|
|
%a.brand{:href => link_to("index.html", active_page)}= "GitStats - #{repo.project_name}"
|
2012-10-08 18:21:42 +02:00
|
|
|
%div.nav-collapse.collapse
|
|
|
|
%ul.nav
|
2012-10-22 19:50:31 +02:00
|
|
|
- links.each do |name, href|
|
2012-10-22 23:18:54 +02:00
|
|
|
%li{:class => active_page[name.to_s.underscore] ? "active" : ""}
|
|
|
|
%a{:href => link_to(href, active_page)}= name.t
|
2012-10-08 18:21:42 +02:00
|
|
|
%div.container
|
|
|
|
= yield
|