2014-07-20 14:18:38 +02:00
|
|
|
%h2
|
2014-07-21 23:17:11 +02:00
|
|
|
%em.fa.fa-gavel
|
2014-07-20 14:18:38 +02:00
|
|
|
= title t '.title'
|
2014-01-06 11:22:39 +01:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
- if @orgas.present?
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
2020-01-17 21:34:55 +01:00
|
|
|
%th(colspan='8')
|
2019-12-25 16:46:50 +01:00
|
|
|
%h3
|
|
|
|
%em.fa.fa-users
|
2020-02-27 21:33:03 +01:00
|
|
|
= Orga.model_name.human.pluralize @orgas.count, I18n.locale
|
2015-07-25 18:32:27 +02:00
|
|
|
|
2020-01-11 18:28:07 +01:00
|
|
|
- @orgas.group_by { |orga| orga.region.flag }.each do |code, orgas|
|
|
|
|
%thead
|
2015-07-25 18:32:27 +02:00
|
|
|
%tr
|
2020-01-17 21:34:55 +01:00
|
|
|
%td(colspan='8')
|
2020-01-11 18:28:07 +01:00
|
|
|
%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
|
2020-01-17 21:34:55 +01:00
|
|
|
%th.view(colspan='3')
|
2020-01-11 18:28:07 +01:00
|
|
|
|
|
|
|
%tbody= render partial: 'orga', collection: orgas
|
|
|
|
|
|
|
|
%tfoot
|
|
|
|
%tr
|
2020-01-17 21:34:55 +01:00
|
|
|
%td(colspan='8')
|
2020-01-11 18:28:07 +01:00
|
|
|
:markdown
|
|
|
|
#{t '.rules'}
|
|
|
|
|
|
|
|
- if @orgas.present? && @events.present?
|
|
|
|
%hr
|
2014-01-06 11:22:39 +01:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
- if @events.present?
|
|
|
|
%table.list
|
|
|
|
%thead
|
2014-01-06 11:22:39 +01:00
|
|
|
%tr
|
2020-01-17 21:34:55 +01:00
|
|
|
%th(colspan='8')
|
2019-12-25 16:46:50 +01:00
|
|
|
%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
|
|
|
|
2020-01-11 18:28:07 +01:00
|
|
|
- @events.group_by { |event| event.region.flag }.each do |code, events|
|
|
|
|
%thead
|
2014-01-06 11:22:39 +01:00
|
|
|
%tr
|
2020-01-17 21:34:55 +01:00
|
|
|
%td(colspan='8')
|
2020-01-11 18:28:07 +01:00
|
|
|
%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
|
2015-07-25 18:32:27 +02:00
|
|
|
\-
|
2020-01-11 18:28:07 +01:00
|
|
|
= 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
|
2020-01-17 21:34:55 +01:00
|
|
|
%th.view(colspan='3')
|
2015-07-25 18:32:27 +02:00
|
|
|
|
2020-01-11 18:28:07 +01:00
|
|
|
%tbody= render partial: 'event', collection: events
|
|
|
|
|
|
|
|
%tfoot
|
|
|
|
%tr
|
2020-01-17 21:34:55 +01:00
|
|
|
%td(colspan='8')
|
2020-01-11 18:28:07 +01:00
|
|
|
:markdown
|
|
|
|
#{t '.rules'}
|
2014-01-10 16:35:58 +01:00
|
|
|
|
2020-01-11 18:28:07 +01:00
|
|
|
%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')
|
2019-12-25 16:46:50 +01:00
|
|
|
\-
|
2014-07-26 11:50:16 +02:00
|
|
|
= link_to destroy_user_session_path, method: :delete do
|
2018-02-11 18:06:32 +01:00
|
|
|
%em.fa.fa-sign-out-alt
|
2015-02-15 15:50:47 +01:00
|
|
|
= t 'logout'
|