2014-07-21 23:17:11 +02:00
|
|
|
%h2
|
|
|
|
%em.fa.fa-signal
|
|
|
|
= title t '.title'
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2014-07-26 18:27:19 +02:00
|
|
|
%dl
|
2015-07-25 18:32:27 +02:00
|
|
|
%dt= t '.allEvents'
|
2017-07-02 13:28:10 +02:00
|
|
|
%dd.quantity= number_with_delimiter @events_count
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
%dt= t '.awaitingModeration'
|
2017-07-02 13:28:10 +02:00
|
|
|
%dd.quantity= number_with_delimiter @events_um_count
|
2015-07-25 18:32:27 +02:00
|
|
|
|
|
|
|
%dt= t '.allOrgas'
|
2017-07-02 13:28:10 +02:00
|
|
|
%dd.quantity= number_with_delimiter @orgas_count
|
2015-07-25 18:32:27 +02:00
|
|
|
|
|
|
|
%dt= t '.awaitingModeration'
|
2017-07-02 13:28:10 +02:00
|
|
|
%dd.quantity= number_with_delimiter @orgas_um_count
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2014-10-19 16:20:44 +02:00
|
|
|
%h3
|
|
|
|
%em.fa.fa-calendar
|
2015-07-25 18:32:27 +02:00
|
|
|
= t '.dates'
|
2014-10-19 16:20:44 +02:00
|
|
|
|
|
|
|
%table.list.dates
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th/
|
2014-11-06 00:23:01 +01:00
|
|
|
- @years.each do |year|
|
2014-10-19 16:20:44 +02:00
|
|
|
%th= year[0]
|
2014-11-06 00:33:33 +01:00
|
|
|
%th/
|
2014-10-19 16:20:44 +02:00
|
|
|
%tbody
|
|
|
|
- (1..12).each do |m|
|
|
|
|
%tr
|
2014-10-19 16:47:30 +02:00
|
|
|
%th.month= I18n.t('date.month_names')[m]
|
2014-11-06 00:23:01 +01:00
|
|
|
- @years.each do |year|
|
2015-12-27 00:16:17 +01:00
|
|
|
- line = @months.find do |l|
|
|
|
|
- l[0][0] == year[0] && l[0][1].try(:to_i) == m
|
2014-10-19 16:20:44 +02:00
|
|
|
%td.quantity
|
2014-10-31 14:33:39 +01:00
|
|
|
= link_to root_path(start_date: "#{year[0]}-#{m}-01") do
|
2014-10-24 01:33:50 +02:00
|
|
|
= number_with_delimiter line[1] if line
|
2014-10-19 16:20:44 +02:00
|
|
|
%td.sparkline/
|
|
|
|
|
|
|
|
%tfoot
|
|
|
|
%tr
|
2015-07-25 18:32:27 +02:00
|
|
|
%th= t '.total'
|
2014-11-06 00:23:01 +01:00
|
|
|
- @years.each do |year|
|
2014-10-19 16:20:44 +02:00
|
|
|
%th.quantity= number_with_delimiter year[1]
|
|
|
|
|
|
|
|
%tr
|
|
|
|
%th/
|
2015-07-25 18:32:27 +02:00
|
|
|
%td.sparkline{ colspan: @years.size }
|
2014-10-19 16:20:44 +02:00
|
|
|
|
|
|
|
%h3
|
2018-02-11 13:13:41 +01:00
|
|
|
%em.fa.fa-shield-alt
|
2015-07-25 18:32:27 +02:00
|
|
|
= t '.regional'
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2014-11-06 00:23:01 +01:00
|
|
|
%table.list.dates
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th/
|
|
|
|
- @years.each do |year|
|
|
|
|
%th= year[0]
|
2015-07-25 18:32:27 +02:00
|
|
|
%th= t '.total'
|
2014-11-06 00:33:33 +01:00
|
|
|
%th/
|
2014-11-06 00:23:01 +01:00
|
|
|
%tbody
|
2017-07-02 14:13:09 +02:00
|
|
|
- @regions.each do |region|
|
2014-11-06 00:23:01 +01:00
|
|
|
%tr
|
2019-04-29 18:29:38 +02:00
|
|
|
%th.region= t(region.code.presence ? region.code : region.name,
|
|
|
|
scope: :countries, default: region.name)
|
2014-11-06 00:33:33 +01:00
|
|
|
- total = 0
|
2014-11-06 00:23:01 +01:00
|
|
|
- @years.each do |year|
|
|
|
|
%td.quantity
|
2017-07-02 14:13:09 +02:00
|
|
|
- total += @region_events[[region.id, year[0]]] || 0
|
2017-07-02 13:28:10 +02:00
|
|
|
= link_to root_path(year: year[0].to_s, region: region.id) do
|
2017-07-02 14:13:09 +02:00
|
|
|
= number_with_delimiter @region_events[[region.id, year[0]]]
|
2014-11-06 00:36:58 +01:00
|
|
|
%th.quantity.total= number_with_delimiter total
|
2014-11-06 00:23:01 +01:00
|
|
|
%td.sparkline/
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2018-02-11 18:06:32 +01:00
|
|
|
%h3
|
|
|
|
%em.fa.fa-building
|
|
|
|
= t '.city'
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
%p= t '.city_conditions'
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2014-07-26 18:27:19 +02:00
|
|
|
%dl
|
2014-05-10 12:06:34 +02:00
|
|
|
- @city_events.each do |city|
|
2014-07-26 18:27:19 +02:00
|
|
|
%dt.item= city[0]
|
2014-07-27 15:49:58 +02:00
|
|
|
%dd.quantity= number_with_delimiter city[1]
|