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
|
end
|
||||||
|
|
||||||
def by_month_array
|
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
|
end
|
||||||
|
|
||||||
def by_year
|
def by_year
|
||||||
|
|
|
@ -36,7 +36,7 @@ module GitStats
|
||||||
title: :commits_by_month.t,
|
title: :commits_by_month.t,
|
||||||
y_text: :commits.t,
|
y_text: :commits.t,
|
||||||
x_text: :month.t,
|
x_text: :month.t,
|
||||||
data_x: Date::ABBR_MONTHNAMES,
|
data_x: Date::ABBR_MONTHNAMES[1..-1],
|
||||||
data_y: @activity.by_month_array
|
data_y: @activity.by_month_array
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
%table{:class => "table table-bordered table-condensed"}
|
%table{:class => "table table-bordered table-condensed"}
|
||||||
%tr
|
%tr
|
||||||
%th= :day.t
|
%th= :day.t
|
||||||
- Date::ABBR_MONTHNAMES.each do |m|
|
- Date::ABBR_MONTHNAMES[1..-1].each do |m|
|
||||||
%th= m
|
%th= m
|
||||||
%tr
|
%tr
|
||||||
%th= :commits.t
|
%th= :commits.t
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
$('.tabbable ul a').click(function (e) {
|
$('.tabbable ul a').click(function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$(this).tab('show');
|
$(this).tab('show');
|
||||||
|
$(document.body).trigger('load');
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
%body
|
%body
|
||||||
|
|
Loading…
Reference in a new issue