mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 09:18:50 +01:00
Code style fixes
This commit is contained in:
parent
c6bbc67dab
commit
d8acf60049
72 changed files with 458 additions and 594 deletions
|
|
@ -1,11 +1,10 @@
|
|||
module StatsHelper
|
||||
|
||||
def font_size(cloud, tag)
|
||||
9 + 2 * cloud.relative_size(tag)
|
||||
end
|
||||
|
||||
def month_and_year_label(i)
|
||||
t('date.month_names')[ (Time.zone.now.mon - i -1 ) % 12 + 1 ]+ " " + (Time.zone.now - i.months).year.to_s
|
||||
t('date.month_names')[(Time.zone.now.mon - i - 1) % 12 + 1] + " " + (Time.zone.now - i.months).year.to_s
|
||||
end
|
||||
|
||||
def array_of_month_and_year_labels(count)
|
||||
|
|
@ -13,11 +12,10 @@ module StatsHelper
|
|||
end
|
||||
|
||||
def month_label(i)
|
||||
t('date.month_names')[ (Time.zone.now.mon - i -1 ) % 12 + 1 ]
|
||||
t('date.month_names')[(Time.zone.now.mon - i - 1) % 12 + 1]
|
||||
end
|
||||
|
||||
def array_of_month_labels(count)
|
||||
Array.new(count) { |i| month_label(i) }
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue