2012-10-21 14:16:34 +02:00
|
|
|
.tabbable.tabs-left
|
|
|
|
%ul.nav.nav-tabs
|
|
|
|
%li.active
|
2012-10-21 15:41:59 +02:00
|
|
|
%a{:href => '#activity_by_date', 'data-toogle' => 'tab'}= :activity_by_date.t
|
|
|
|
%li
|
2012-10-21 14:16:34 +02:00
|
|
|
%a{:href => '#hour_of_day', 'data-toogle' => 'tab'}= :hour_of_day.t
|
|
|
|
%li
|
|
|
|
%a{:href => '#day_of_week', 'data-toogle' => 'tab'}= :day_of_week.t
|
|
|
|
%li
|
|
|
|
%a{:href => '#hour_of_week', 'data-toogle' => 'tab'}= :hour_of_week.t
|
|
|
|
%li
|
|
|
|
%a{:href => '#month_of_year', 'data-toogle' => 'tab'}= :month_of_year.t
|
2012-10-21 14:36:13 +02:00
|
|
|
%li
|
|
|
|
%a{:href => '#year', 'data-toogle' => 'tab'}= :year.t
|
2012-10-21 14:53:54 +02:00
|
|
|
%li
|
|
|
|
%a{:href => '#year_month', 'data-toogle' => 'tab'}= :year_month.t
|
2012-10-21 13:44:42 +02:00
|
|
|
|
2012-10-21 14:16:34 +02:00
|
|
|
.tab-content
|
2012-10-21 15:41:59 +02:00
|
|
|
.tab-pane.active{id: 'activity_by_date'}
|
|
|
|
.page-header
|
|
|
|
%h1.pagination-centered= :activity_by_date.t
|
|
|
|
= high_stock("charts.activity_by_date", charts.activity_by_date)
|
|
|
|
|
|
|
|
|
|
|
|
.tab-pane{id: 'hour_of_day'}
|
2012-10-21 14:16:34 +02:00
|
|
|
.page-header
|
|
|
|
%h1.pagination-centered= :hour_of_day.t
|
|
|
|
%table{:class => "table table-bordered table-condensed"}
|
|
|
|
%tr
|
|
|
|
%th= :hour.t
|
|
|
|
- (0..23).each do |h|
|
|
|
|
%th= h
|
|
|
|
%tr
|
|
|
|
%th= :commits.t
|
|
|
|
- repo.activity.by_hour_array.each do |commits|
|
|
|
|
%td= commits
|
|
|
|
%tr
|
|
|
|
%th= :percentage.t
|
|
|
|
- repo.activity.by_hour_array.each do |commits|
|
|
|
|
%td= (commits * 100.0 / repo.activity.by_hour_array.sum).round(2)
|
2012-10-21 15:41:59 +02:00
|
|
|
= high_chart("charts.activity_by_hour", charts.activity_by_hour)
|
2012-10-21 13:44:42 +02:00
|
|
|
|
2012-10-21 14:16:34 +02:00
|
|
|
.tab-pane{id: 'day_of_week'}
|
|
|
|
.page-header
|
|
|
|
%h1.pagination-centered= :day_of_week.t
|
|
|
|
%table{:class => "table table-bordered table-condensed"}
|
|
|
|
%tr
|
|
|
|
%th= :day.t
|
|
|
|
- Date::ABBR_DAYNAMES.each do |d|
|
|
|
|
%th= d
|
|
|
|
%tr
|
|
|
|
%th= :commits.t
|
|
|
|
- repo.activity.by_wday_array.each do |commits|
|
|
|
|
%td= commits
|
|
|
|
%tr
|
|
|
|
%th= :percentage.t
|
|
|
|
- repo.activity.by_wday_array.each do |commits|
|
|
|
|
%td= (commits * 100.0 / repo.activity.by_wday_array.sum).round(2)
|
2012-10-21 15:41:59 +02:00
|
|
|
= high_chart("charts.activity_by_wday", charts.activity_by_wday)
|
2012-10-21 13:54:35 +02:00
|
|
|
|
|
|
|
|
2012-10-21 14:16:34 +02:00
|
|
|
.tab-pane{id: 'hour_of_week'}
|
|
|
|
.page-header
|
|
|
|
%h1.pagination-centered= :hour_of_week.t
|
|
|
|
%table{:class => "table table-bordered table-condensed"}
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
- (0..23).each do |h|
|
|
|
|
%th= h
|
|
|
|
- (0..6).each do |day|
|
|
|
|
%tr
|
|
|
|
%th= Date::ABBR_DAYNAMES[day]
|
|
|
|
- (0..23).each do |hour|
|
|
|
|
%td= repo.activity.by_wday_hour[day][hour]
|
|
|
|
|
|
|
|
.tab-pane{id: 'month_of_year'}
|
|
|
|
.page-header
|
|
|
|
%h1.pagination-centered= :month_of_year.t
|
|
|
|
%table{:class => "table table-bordered table-condensed"}
|
|
|
|
%tr
|
|
|
|
%th= :day.t
|
2012-10-21 14:25:51 +02:00
|
|
|
- Date::ABBR_MONTHNAMES[1..-1].each do |m|
|
2012-10-21 14:16:34 +02:00
|
|
|
%th= m
|
|
|
|
%tr
|
|
|
|
%th= :commits.t
|
|
|
|
- repo.activity.by_month_array.each do |commits|
|
|
|
|
%td= commits
|
|
|
|
%tr
|
|
|
|
%th= :percentage.t
|
|
|
|
- repo.activity.by_month_array.each do |commits|
|
|
|
|
%td= (commits * 100.0 / repo.activity.by_month_array.sum).round(2)
|
2012-10-21 15:41:59 +02:00
|
|
|
= high_chart("charts.activity_by_month", charts.activity_by_month)
|
2012-10-21 14:36:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
.tab-pane{id: 'year'}
|
|
|
|
.page-header
|
|
|
|
%h1.pagination-centered= :year.t
|
2012-10-21 15:41:59 +02:00
|
|
|
= high_chart("charts.activity_by_year", charts.activity_by_year)
|
2012-10-21 14:53:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
.tab-pane{id: 'year_month'}
|
|
|
|
.page-header
|
|
|
|
%h1.pagination-centered= :year_month.t
|
|
|
|
%table{:class => "table table-bordered table-condensed"}
|
|
|
|
%tr
|
|
|
|
%th
|
|
|
|
- Date::ABBR_MONTHNAMES[1..-1].each do |h|
|
|
|
|
%th= h
|
|
|
|
- repo.activity.by_year_month.each do |year, months|
|
|
|
|
%tr
|
|
|
|
%th= year
|
|
|
|
- (1..12).each do |month|
|
|
|
|
%td= months[month]
|