agenda-libre-ruby/app/views/regions/stats.html.haml

39 lines
742 B
Plaintext
Raw Normal View History

2014-07-21 23:17:11 +02:00
%h2
%em.fa.fa-signal
= title t '.title'
2014-07-26 18:27:19 +02:00
%dl
%dt=t '.all'
%dd.quantity= number_with_delimiter Event.count()
2014-07-26 18:27:19 +02:00
%dt=t '.allModeration'
%dd.quantity= number_with_delimiter Event.unscoped.where(moderated: 0).count()
%h3=t '.regional'
2014-07-26 18:27:19 +02:00
%dl
- @region_events.each do |region|
2014-07-26 18:27:19 +02:00
%dt.item= region[0]
%dd.quantity= number_with_delimiter region[1]
%h3=t '.city'
%p=t '.city_conditions'
2014-07-26 18:27:19 +02:00
%dl
- @city_events.each do |city|
2014-07-26 18:27:19 +02:00
%dt.item= city[0]
%dd.quantity= number_with_delimiter city[1]
%h3=t '.dates'
2014-07-26 18:27:19 +02:00
%dl
- @month_events.each do |month|
2014-07-26 18:27:19 +02:00
%dt.item= l(Date.new(month[0][0].to_i, month[0][1].to_i), format: :month).capitalize
%dd.quantity= number_with_delimiter month[1]
%h3=t '.web'
:markdown
#{t '.webalizer'}