diff --git a/app/assets/javascripts/regions.js.coffee b/app/assets/javascripts/regions.js.coffee index f565b5a0..0696d996 100644 --- a/app/assets/javascripts/regions.js.coffee +++ b/app/assets/javascripts/regions.js.coffee @@ -15,3 +15,4 @@ $(document).ready -> height: '3em' barWidth: '100%' barColor: '#9CC5EE' + barSpacing: 2 diff --git a/app/assets/stylesheets/region.css.sass b/app/assets/stylesheets/region.css.sass index c03ca523..f4bcf34b 100644 --- a/app/assets/stylesheets/region.css.sass +++ b/app/assets/stylesheets/region.css.sass @@ -34,5 +34,9 @@ body.stats h3 text-align: center -.sparkline - padding: 0 +table.list.dates + th, td + padding: 0 1em + + .sparkline + padding: 0 diff --git a/app/views/regions/stats.html.haml b/app/views/regions/stats.html.haml index 2edd42e4..2448b3b3 100644 --- a/app/views/regions/stats.html.haml +++ b/app/views/regions/stats.html.haml @@ -22,7 +22,7 @@ %tbody - (1..12).each do |m| %tr - %td.month= I18n.t('date.month_names')[m] + %th.month= I18n.t('date.month_names')[m] - @year_events.each do |year| %td.quantity - line = @month_events.find { |line| line[0][0] == year[0] && line[0][1] == m }