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
|
|
|
|
2014-06-29 12:29:07 +02:00
|
|
|
:markdown
|
2019-12-25 16:46:50 +01:00
|
|
|
### #{t '.rules'}
|
2014-01-06 11:22:39 +01:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
- if @orgas.present?
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
2019-12-25 17:18:17 +01:00
|
|
|
%th(colspan='7')
|
2019-12-25 16:46:50 +01:00
|
|
|
%h3
|
|
|
|
%em.fa.fa-users
|
|
|
|
= Orga.model_name.human.pluralize @orgas.count
|
|
|
|
%tr
|
2019-12-25 17:18:17 +01:00
|
|
|
%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
|
2015-07-25 18:32:27 +02:00
|
|
|
%th= Orga.human_attribute_name :submission_time
|
|
|
|
%th= t '.actions'
|
|
|
|
|
|
|
|
%tbody
|
|
|
|
- @orgas.each do |orga|
|
|
|
|
%tr
|
2019-12-25 17:18:17 +01:00
|
|
|
%td.flag{ title: orga.region }
|
2019-12-25 16:46:50 +01:00
|
|
|
= flag_icon orga.region.flag
|
|
|
|
%td.kind
|
|
|
|
- if orga.kind
|
|
|
|
%em.fa{ class: "fa-#{orga.kind.icon}",
|
|
|
|
title: Kind.human_attribute_name("name_#{orga.kind.name}") }
|
2019-12-25 17:18:17 +01:00
|
|
|
%td.name= orga.name
|
|
|
|
%td.city= orga.city
|
|
|
|
%td.region= orga.region
|
2015-07-25 18:32:27 +02:00
|
|
|
%td= time_ago_in_words orga.submission_time
|
|
|
|
%th.actions
|
|
|
|
= link_to edit_orga_path orga do
|
2018-02-11 18:06:32 +01:00
|
|
|
%em.fa.fa-edit
|
2015-07-25 18:32:27 +02:00
|
|
|
= t 'edit'
|
|
|
|
\-
|
|
|
|
= link_to validate_orga_path orga do
|
|
|
|
%em.fa.fa-thumbs-up
|
|
|
|
= t 'validate'
|
|
|
|
\-
|
|
|
|
= link_to cancel_orga_path orga do
|
|
|
|
%em.fa.fa-thumbs-down
|
|
|
|
= t 'refuse'
|
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
|
2019-12-25 17:18:17 +01:00
|
|
|
%th(colspan='7')
|
2019-12-25 16:46:50 +01:00
|
|
|
%h3
|
|
|
|
%em.fa.fa-calendar
|
|
|
|
= Event.model_name.human.pluralize @events.count
|
|
|
|
%tr
|
2019-12-25 17:18:17 +01:00
|
|
|
%th.flag
|
|
|
|
%th.title= Event.human_attribute_name :title
|
2015-07-25 18:32:27 +02:00
|
|
|
%th
|
|
|
|
= Event.human_attribute_name :start_time
|
2014-01-06 11:22:39 +01:00
|
|
|
\-
|
2015-07-25 18:32:27 +02:00
|
|
|
= Event.human_attribute_name :end_time
|
2019-12-25 17:18:17 +01:00
|
|
|
%th.city= Event.human_attribute_name :city
|
|
|
|
%th.region= Event.human_attribute_name :region
|
2015-07-25 18:32:27 +02:00
|
|
|
%th= Event.human_attribute_name :submission_time
|
2019-12-25 17:18:17 +01:00
|
|
|
%th.actions= t '.actions'
|
2014-01-06 11:22:39 +01:00
|
|
|
|
2015-07-25 18:32:27 +02:00
|
|
|
%tbody
|
|
|
|
- @events.each do |event|
|
2014-01-06 11:22:39 +01:00
|
|
|
%tr
|
2019-12-25 17:18:17 +01:00
|
|
|
%td.flag= flag_icon event.region.flag
|
|
|
|
%td.title= event.title
|
2015-07-25 18:32:27 +02:00
|
|
|
%td= display_date event
|
2019-12-25 17:18:17 +01:00
|
|
|
%td.city= event.city
|
|
|
|
%td.region= event.region
|
2015-07-25 18:32:27 +02:00
|
|
|
%td= time_ago_in_words event.submission_time
|
|
|
|
%th.actions
|
|
|
|
= link_to edit_moderation_path event do
|
2018-02-11 18:06:32 +01:00
|
|
|
%em.fa.fa-edit
|
2015-07-25 18:32:27 +02:00
|
|
|
= t 'edit'
|
|
|
|
\-
|
|
|
|
= link_to validate_moderation_path event do
|
|
|
|
%em.fa.fa-thumbs-up
|
|
|
|
= t 'validate'
|
|
|
|
\-
|
|
|
|
= link_to refuse_moderation_path event do
|
|
|
|
%em.fa.fa-thumbs-down
|
|
|
|
= t 'refuse'
|
|
|
|
\-
|
|
|
|
= link_to new_moderation_note_path event, envoiParMail: :oui do
|
|
|
|
%em.fa.fa-bullhorn
|
|
|
|
= t '.askInfos'
|
|
|
|
\-
|
|
|
|
= link_to new_moderation_note_path event do
|
|
|
|
%em.fa.fa-paperclip
|
|
|
|
= t '.createNote'
|
|
|
|
|
|
|
|
- event.notes.each do |note|
|
|
|
|
%tr
|
2019-12-25 16:46:50 +01:00
|
|
|
%td.note(colspan='6')
|
2019-11-17 12:56:11 +01:00
|
|
|
= note.contents
|
2015-07-25 18:32:27 +02:00
|
|
|
%em.author
|
|
|
|
= t '.posted_by',
|
|
|
|
author: "#{note.author.firstname} #{note.author.lastname}",
|
|
|
|
date: l(note.date, format: :at) rescue nil
|
2014-01-10 16:35:58 +01:00
|
|
|
|
2019-05-10 18:06:39 +02:00
|
|
|
.actions
|
|
|
|
= 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'
|