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

39 lines
742 B
Plaintext

%h2
%em.fa.fa-signal
= title t '.title'
%dl
%dt=t '.all'
%dd.quantity= number_with_delimiter Event.count()
%dt=t '.allModeration'
%dd.quantity= number_with_delimiter Event.unscoped.where(moderated: 0).count()
%h3=t '.regional'
%dl
- @region_events.each do |region|
%dt.item= region[0]
%dd.quantity= number_with_delimiter region[1]
%h3=t '.city'
%p=t '.city_conditions'
%dl
- @city_events.each do |city|
%dt.item= city[0]
%dd.quantity= number_with_delimiter city[1]
%h3=t '.dates'
%dl
- @month_events.each do |month|
%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'}