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

45 lines
737 B
Plaintext
Raw Normal View History

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