mirror of
https://github.com/tomgi/git_stats.git
synced 2025-01-03 11:12:11 +01:00
month of year working
This commit is contained in:
parent
c960c3dff7
commit
470bcd4ecf
4 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,7 @@ module GitStats
|
|||
end
|
||||
|
||||
def by_month_array
|
||||
by_month.to_key_indexed_array(min_size: 12, default: 0)
|
||||
by_month.to_key_indexed_array(min_size: 13, default: 0)[1..-1]
|
||||
end
|
||||
|
||||
def by_year
|
||||
|
|
|
@ -36,7 +36,7 @@ module GitStats
|
|||
title: :commits_by_month.t,
|
||||
y_text: :commits.t,
|
||||
x_text: :month.t,
|
||||
data_x: Date::ABBR_MONTHNAMES,
|
||||
data_x: Date::ABBR_MONTHNAMES[1..-1],
|
||||
data_y: @activity.by_month_array
|
||||
)
|
||||
end
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
%table{:class => "table table-bordered table-condensed"}
|
||||
%tr
|
||||
%th= :day.t
|
||||
- Date::ABBR_MONTHNAMES.each do |m|
|
||||
- Date::ABBR_MONTHNAMES[1..-1].each do |m|
|
||||
%th= m
|
||||
%tr
|
||||
%th= :commits.t
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
$('.tabbable ul a').click(function (e) {
|
||||
e.preventDefault();
|
||||
$(this).tab('show');
|
||||
$(document.body).trigger('load');
|
||||
})
|
||||
});
|
||||
%body
|
||||
|
|
Loading…
Reference in a new issue