|
|
|
@ -9,27 +9,30 @@
|
|
|
|
|
%table.list |
|
|
|
|
%thead |
|
|
|
|
%tr |
|
|
|
|
%th(colspan='5') |
|
|
|
|
%th(colspan='7') |
|
|
|
|
%h3 |
|
|
|
|
%em.fa.fa-users |
|
|
|
|
= Orga.model_name.human.pluralize @orgas.count |
|
|
|
|
%tr |
|
|
|
|
%th= Orga.human_attribute_name :city |
|
|
|
|
%th(colspan='2')= Orga.human_attribute_name :name |
|
|
|
|
%th.flag |
|
|
|
|
%th.name(colspan='2')= Orga.human_attribute_name :name |
|
|
|
|
%th.city= Orga.human_attribute_name :city |
|
|
|
|
%th.region= Orga.human_attribute_name :region |
|
|
|
|
%th= Orga.human_attribute_name :submission_time |
|
|
|
|
%th= t '.actions' |
|
|
|
|
|
|
|
|
|
%tbody |
|
|
|
|
- @orgas.each do |orga| |
|
|
|
|
%tr |
|
|
|
|
%td{ title: orga.region } |
|
|
|
|
%td.flag{ title: orga.region } |
|
|
|
|
= flag_icon orga.region.flag |
|
|
|
|
= orga.city || orga.region |
|
|
|
|
%td.kind |
|
|
|
|
- if orga.kind |
|
|
|
|
%em.fa{ class: "fa-#{orga.kind.icon}", |
|
|
|
|
title: Kind.human_attribute_name("name_#{orga.kind.name}") } |
|
|
|
|
%td= orga.name |
|
|
|
|
%td.name= orga.name |
|
|
|
|
%td.city= orga.city |
|
|
|
|
%td.region= orga.region |
|
|
|
|
%td= time_ago_in_words orga.submission_time |
|
|
|
|
%th.actions |
|
|
|
|
= link_to edit_orga_path orga do |
|
|
|
@ -48,28 +51,30 @@
|
|
|
|
|
%table.list |
|
|
|
|
%thead |
|
|
|
|
%tr |
|
|
|
|
%th(colspan='5') |
|
|
|
|
%th(colspan='7') |
|
|
|
|
%h3 |
|
|
|
|
%em.fa.fa-calendar |
|
|
|
|
= Event.model_name.human.pluralize @events.count |
|
|
|
|
%tr |
|
|
|
|
%th= Event.human_attribute_name :city |
|
|
|
|
%th= Event.human_attribute_name :title |
|
|
|
|
%th.flag |
|
|
|
|
%th.title= Event.human_attribute_name :title |
|
|
|
|
%th |
|
|
|
|
= Event.human_attribute_name :start_time |
|
|
|
|
\- |
|
|
|
|
= Event.human_attribute_name :end_time |
|
|
|
|
%th.city= Event.human_attribute_name :city |
|
|
|
|
%th.region= Event.human_attribute_name :region |
|
|
|
|
%th= Event.human_attribute_name :submission_time |
|
|
|
|
%th= t '.actions' |
|
|
|
|
%th.actions= t '.actions' |
|
|
|
|
|
|
|
|
|
%tbody |
|
|
|
|
- @events.each do |event| |
|
|
|
|
%tr |
|
|
|
|
%td{ title: event.region } |
|
|
|
|
= flag_icon event.region.flag |
|
|
|
|
= event.city |
|
|
|
|
%td= event.title |
|
|
|
|
%td.flag= flag_icon event.region.flag |
|
|
|
|
%td.title= event.title |
|
|
|
|
%td= display_date event |
|
|
|
|
%td.city= event.city |
|
|
|
|
%td.region= event.region |
|
|
|
|
%td= time_ago_in_words event.submission_time |
|
|
|
|
%th.actions |
|
|
|
|
= link_to edit_moderation_path event do |
|
|
|
|