2014-01-05 18:48:32 +01:00
|
|
|
%h2=t '.title'
|
|
|
|
|
|
|
|
%h3=t '.general'
|
|
|
|
|
2014-01-05 18:50:37 +01:00
|
|
|
%table.list
|
2014-01-05 18:48:32 +01:00
|
|
|
%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'
|
|
|
|
|
2014-01-05 18:50:37 +01:00
|
|
|
%table.list
|
2014-05-10 12:06:34 +02:00
|
|
|
- @region_events.each do |region|
|
2014-01-05 18:48:32 +01:00
|
|
|
%tr
|
2014-05-10 12:06:34 +02:00
|
|
|
%td.item= region[0]
|
|
|
|
%td.quantity= region[1]
|
2014-01-05 18:48:32 +01:00
|
|
|
|
|
|
|
%h3=t '.city'
|
|
|
|
|
2014-05-10 12:06:34 +02:00
|
|
|
%p=t '.city_conditions'
|
2014-01-05 18:48:32 +01:00
|
|
|
|
2014-01-05 18:50:37 +01:00
|
|
|
%table.list
|
2014-05-10 12:06:34 +02:00
|
|
|
- @city_events.each do |city|
|
2014-01-05 18:48:32 +01:00
|
|
|
%tr
|
2014-05-10 12:06:34 +02:00
|
|
|
%td.item= city[0]
|
|
|
|
%td.quantity= city[1]
|
2014-01-05 18:48:32 +01:00
|
|
|
|
|
|
|
%h3=t '.dates'
|
|
|
|
|
2014-01-05 18:50:37 +01:00
|
|
|
%table.list
|
2014-05-10 12:06:34 +02:00
|
|
|
- @month_events.each do |month|
|
2014-01-05 18:48:32 +01:00
|
|
|
%tr
|
|
|
|
%td.item= l(Date.new(month[0][0], month[0][1]), format: :month).capitalize
|
|
|
|
%td.quantity= month[1]
|
|
|
|
|
|
|
|
%h3=t '.web'
|
|
|
|
|
2014-05-10 12:06:34 +02:00
|
|
|
- markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true)
|
|
|
|
= raw markdown.render t '.webalizer'
|