month of year working

This commit is contained in:
Tomasz Gieniusz 2012-10-21 14:25:51 +02:00
parent c960c3dff7
commit 470bcd4ecf
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -17,6 +17,7 @@
$('.tabbable ul a').click(function (e) {
e.preventDefault();
$(this).tab('show');
$(document.body).trigger('load');
})
});
%body