A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB

%h2=t '.title'
Modérateurs, merci de lire et de tenir compte des
= link_to 'recommandations de modération', 'http://agendadulibre.org/moderation-howto.php'
%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'
- @events.each do |event|
%td= event.title
- 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
=l event.start_time, format: :at
#{l event.end_time, format: :at}
%td= event.city
%td= event.region.name
%td= time_ago_in_words event.submission_time.to_date
= link_to t('edit'), edit_moderation_path(event)
= link_to t('validate'), edit_moderation_path(event)
= link_to t('refuse'), edit_moderation_path(event)
- event.notes.each do |note|
=raw note.contents
=t '.posted_by',
author: "#{note.author.firstname} #{note.author.lastname}",
date: l(note.date, format: :at)
.logout= link_to t('logout'), destroy_user_session_path, method: :delete