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

64 lines
1.8 KiB
Plaintext
Raw Normal View History

2014-01-06 11:22:39 +01:00
%h2=t '.title'
:markdown
#### #{t '.rules'}
2014-01-06 11:22:39 +01:00
%table.list
%thead
%tr
%th= Event.human_attribute_name :title
%th=t '.date'
%th= Event.human_attribute_name :city
%th= Event.human_attribute_name :region
%th= Event.human_attribute_name :submission_time
%th=t '.actions'
%tbody
- @events.each do |event|
%tr
%td= event.title
%td
- if event.same_day?
Le #{l event.start_time.to_date, format: :long},
de #{l event.start_time, format: :hours} à #{l event.end_time, format: :hours}
- else
Du
=l event.start_time, format: :at
au
2014-06-29 10:29:43 +02:00
=l event.end_time, format: :at
2014-01-06 11:22:39 +01:00
%td= event.city
%td= event.region.name
%td= time_ago_in_words event.submission_time.to_date
%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-06-29 10:29:43 +02:00
= link_to edit_moderation_path event do
%em.fa.fa-thumbs-up
=t 'validate'
2014-01-06 11:22:39 +01:00
\-
2014-06-29 10:29:43 +02:00
= link_to edit_moderation_path event do
%em.fa.fa-thumbs-down
=t 'refuse'
%br/
2014-06-29 10:29:43 +02:00
= link_to new_moderation_note_path event, envoiParMail: :oui do
%em.fa.fa-bullhorn
=t '.askInfos'
%br/
2014-06-29 10:29:43 +02:00
= link_to new_moderation_note_path event do
%em.fa.fa-files-o
=t '.createNote'
2014-01-06 11:22:39 +01:00
- event.notes.each do |note|
%tr
%td.empty/
%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
.logout= link_to t('logout'), destroy_user_session_path, method: :delete