diff --git a/app/views/stats/index.html.haml b/app/views/stats/index.html.haml index a941280b..8ceae1be 100644 --- a/app/views/stats/index.html.haml +++ b/app/views/stats/index.html.haml @@ -31,8 +31,9 @@ %tr %th.month= I18n.t('date.month_names')[m] - @years.each do |year| + - line = @months.find do |l| + - l[0][0] == year[0] && l[0][1].try(:to_i) == m %td.quantity - - line = @months.find { |line| line[0][0] == year[0] && line[0][1].try(:to_i) == m } = link_to root_path(start_date: "#{year[0]}-#{m}-01") do = number_with_delimiter line[1] if line %td.sparkline/ @@ -80,8 +81,3 @@ - @city_events.each do |city| %dt.item= city[0] %dd.quantity= number_with_delimiter city[1] - -%h3= t '.web' - -:markdown - #{t '.webalizer'} diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index 6ebbc8ca..c5a20545 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -137,10 +137,6 @@ fr: organisés sont mentionnées. total: Total web: Statistiques Web - webalizer: Des statistiques Web générées par Webalizer [sont - disponibles](http://agendadulibre.org/stats/). Elles sont protégées par - le login *stats*, mot de passe *Cuntipshaf6* pour éviter le *spam de - referers* tags: index: title: Tags