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
|
|
|
|
#### #{t '.rules'}
|
2014-01-06 11:22:39 +01:00
|
|
|
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= Event.human_attribute_name :title
|
2014-07-26 11:50:16 +02:00
|
|
|
%th
|
|
|
|
= Event.human_attribute_name :start_time
|
|
|
|
\-
|
|
|
|
= Event.human_attribute_name :end_time
|
2014-01-06 11:22:39 +01:00
|
|
|
%th= Event.human_attribute_name :city
|
2014-10-04 21:21:01 +02:00
|
|
|
%th= Event.human_attribute_name :region
|
2014-01-06 11:22:39 +01:00
|
|
|
%th= Event.human_attribute_name :submission_time
|
|
|
|
%th=t '.actions'
|
|
|
|
|
|
|
|
%tbody
|
|
|
|
- @events.each do |event|
|
|
|
|
%tr
|
|
|
|
%td= event.title
|
2014-08-26 16:51:52 +02:00
|
|
|
%td= display_date event
|
2014-01-06 11:22:39 +01:00
|
|
|
%td= event.city
|
2014-07-01 15:50:39 +02:00
|
|
|
%td= event.related_region.name
|
2014-07-28 16:16:27 +02:00
|
|
|
%td= time_ago_in_words event.submission_time
|
2014-01-11 10:51:19 +01:00
|
|
|
%th.actions
|
2014-06-29 10:29:43 +02:00
|
|
|
= link_to edit_moderation_path event do
|
|
|
|
%em.fa.fa-pencil
|
|
|
|
=t 'edit'
|
2014-01-06 11:22:39 +01:00
|
|
|
\-
|
2014-07-01 15:50:39 +02:00
|
|
|
= link_to validate_moderation_path event do
|
2014-06-29 10:29:43 +02:00
|
|
|
%em.fa.fa-thumbs-up
|
|
|
|
=t 'validate'
|
2014-01-06 11:22:39 +01:00
|
|
|
\-
|
2014-07-01 15:50:39 +02:00
|
|
|
= link_to refuse_moderation_path event do
|
2014-06-29 10:29:43 +02:00
|
|
|
%em.fa.fa-thumbs-down
|
|
|
|
=t 'refuse'
|
2014-07-26 11:50:16 +02:00
|
|
|
\-
|
2014-06-29 10:29:43 +02:00
|
|
|
= link_to new_moderation_note_path event, envoiParMail: :oui do
|
|
|
|
%em.fa.fa-bullhorn
|
|
|
|
=t '.askInfos'
|
2014-07-26 11:50:16 +02:00
|
|
|
\-
|
2014-06-29 10:29:43 +02:00
|
|
|
= link_to new_moderation_note_path event do
|
2014-07-26 11:50:16 +02:00
|
|
|
%em.fa.fa-paperclip
|
2014-06-29 10:29:43 +02:00
|
|
|
=t '.createNote'
|
2014-01-06 11:22:39 +01:00
|
|
|
|
|
|
|
- event.notes.each do |note|
|
|
|
|
%tr
|
|
|
|
%td.empty/
|
2014-03-06 21:49:30 +01:00
|
|
|
%td.note(colspan="5")
|
2014-01-06 11:22:39 +01:00
|
|
|
=raw note.contents
|
|
|
|
%em.author
|
|
|
|
=t '.posted_by',
|
|
|
|
author: "#{note.author.firstname} #{note.author.lastname}",
|
2014-02-18 09:28:04 +01:00
|
|
|
date: l(note.date, format: :at) rescue nil
|
2014-01-10 16:35:58 +01:00
|
|
|
|
2014-07-26 11:50:16 +02:00
|
|
|
.logout
|
|
|
|
= link_to destroy_user_session_path, method: :delete do
|
|
|
|
%em.fa.fa-sign-out
|
|
|
|
=t 'logout'
|