agenda-libre-ruby/app/views/moderations/index.html.haml

88 lines
2.3 KiB
Plaintext
Raw Normal View History

%h2
2014-07-21 23:17:11 +02:00
%em.fa.fa-gavel
= title t '.title'
2014-01-06 11:22:39 +01:00
- if @orgas.present?
%table.list
%thead
%tr
%th(colspan='8')
%h3
%em.fa.fa-users
2020-02-27 21:33:03 +01:00
= Orga.model_name.human.pluralize @orgas.count, I18n.locale
- @orgas.group_by { |orga| orga.region.flag }.each do |code, orgas|
%thead
%tr
%td(colspan='8')
%h4
- if code.present?
= flag_icon code
= t code.upcase, scope: :countries
- else
= orgas[0].region
%tr
%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.view(colspan='3')
%tbody= render partial: 'orga', collection: orgas
%tfoot
%tr
%td(colspan='8')
:markdown
#{t '.rules'}
- if @orgas.present? && @events.present?
%hr
2014-01-06 11:22:39 +01:00
- if @events.present?
%table.list
%thead
2014-01-06 11:22:39 +01:00
%tr
%th(colspan='8')
%h3
%em.fa.fa-calendar
2020-02-27 21:33:03 +01:00
= Event.model_name.human.pluralize @events.count, I18n.locale
2014-01-06 11:22:39 +01:00
- @events.group_by { |event| event.region.flag }.each do |code, events|
%thead
2014-01-06 11:22:39 +01:00
%tr
%td(colspan='8')
%h4
- if code.present?
= flag_icon code
= t code.upcase, scope: :countries
- else
= events[0].region
%tr
%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.view(colspan='3')
%tbody= render partial: 'event', collection: events
%tfoot
%tr
%td(colspan='8')
:markdown
#{t '.rules'}
%fieldset.actions
2019-05-10 18:06:39 +02:00
= link_to edit_user_registration_path do
%em.fa.fa-lock
= t('change_my_password', scope: 'devise.passwords.edit')
\-
= link_to destroy_user_session_path, method: :delete do
2018-02-11 18:06:32 +01:00
%em.fa.fa-sign-out-alt
= t 'logout'