2014-06-26 21:55:23 +02:00
|
|
|
- if request.format == 'text/html' && controller.controller_name != 'moderations' && controller.controller_name != 'notes' && controller.action_name != 'edit' && controller.action_name != 'cancel'
|
2014-01-01 21:26:35 +01:00
|
|
|
#lug-list
|
|
|
|
%h1=t '.lug-list'
|
2014-07-01 15:50:39 +02:00
|
|
|
- if @event.related_region
|
2014-01-01 21:26:35 +01:00
|
|
|
%ul
|
2014-07-01 15:50:39 +02:00
|
|
|
- @event.related_region.lugs.order(department: :asc).each do |lug|
|
2014-01-01 21:26:35 +01:00
|
|
|
%li
|
|
|
|
= link_to lug.name, lug.url
|
|
|
|
(#{lug.department})
|
|
|
|
|
2014-06-30 00:52:45 +02:00
|
|
|
%h1=t '.actions'
|
2014-07-01 15:50:39 +02:00
|
|
|
= link_to root_url do
|
|
|
|
%em.fa.fa-calendar
|
|
|
|
=t '.add_to_calendar'
|
|
|
|
- if user_signed_in?
|
|
|
|
= link_to edit_moderation_path @event do
|
|
|
|
%em.fa.fa-pencil
|
|
|
|
=t '.edit'
|
|
|
|
%br/
|
|
|
|
= link_to cancel_event_path @event, secret: @event.secret do
|
|
|
|
%em.fa.fa-thumbs-down
|
|
|
|
=t '.cancel'
|
2013-12-29 23:25:38 +01:00
|
|
|
|
|
|
|
%h2
|
2014-05-10 11:38:39 +02:00
|
|
|
%em= @event.city + ':'
|
2013-12-28 23:45:13 +01:00
|
|
|
= @event.title
|
2013-12-29 23:25:38 +01:00
|
|
|
|
2014-06-29 12:29:07 +02:00
|
|
|
%h3=t '.dateAndPlace'
|
2013-12-28 23:45:13 +01:00
|
|
|
%p
|
2013-12-29 23:25:38 +01:00
|
|
|
- if @event.same_day?
|
|
|
|
Le #{l @event.start_time.to_date, format: :long},
|
2014-01-01 21:26:35 +01:00
|
|
|
de #{l @event.start_time, format: :hours} à #{l @event.end_time, format: :hours}.
|
2013-12-29 23:25:38 +01:00
|
|
|
- else
|
|
|
|
Du
|
|
|
|
=l @event.start_time, format: :at
|
|
|
|
au
|
|
|
|
#{l @event.end_time, format: :at}.
|
|
|
|
|
2013-12-28 23:45:13 +01:00
|
|
|
%p
|
2014-06-21 18:53:05 +02:00
|
|
|
=t '.at'
|
2014-06-27 12:21:09 +02:00
|
|
|
%em= link_to(@event.city, "http://fr.wikipedia.org/wiki/#{url_encode @event.city}") + ','
|
2014-07-01 15:50:39 +02:00
|
|
|
= link_to @event.related_region.name, "http://fr.wikipedia.org/wiki/#{url_encode @event.related_region.name}" rescue nil
|
2013-12-29 23:25:38 +01:00
|
|
|
|
2014-06-29 12:29:07 +02:00
|
|
|
%h3=t '.description'
|
2014-06-21 18:53:05 +02:00
|
|
|
.description
|
|
|
|
= sanitize @event.description,
|
|
|
|
tags: %w(p br table tr td ul ol li a strong b em i img),
|
|
|
|
attributes: %w(href src width height)
|
2013-12-29 23:25:38 +01:00
|
|
|
|
2014-06-29 12:29:07 +02:00
|
|
|
%h3=t '.infos'
|
2013-12-28 23:45:13 +01:00
|
|
|
%p
|
2014-06-29 12:29:07 +02:00
|
|
|
%span.label= Event.human_attribute_name :url
|
2013-12-29 23:25:38 +01:00
|
|
|
= link_to @event.url, @event.url
|
2013-12-28 23:45:13 +01:00
|
|
|
%p
|
2014-06-29 12:29:07 +02:00
|
|
|
%span.label= Event.human_attribute_name :contact
|
2014-06-27 12:31:43 +02:00
|
|
|
= mail_to @event.contact, nil, encode: :javascript, replace_at: ' CHEZ ', replace_dot: ' POINT '
|
2013-12-28 23:45:13 +01:00
|
|
|
|
2014-07-01 15:50:39 +02:00
|
|
|
- if @event.tags && @event.tags.present?
|
2014-06-09 20:36:53 +02:00
|
|
|
%p.tags
|
2014-06-29 12:29:07 +02:00
|
|
|
%span.label= Event.human_attribute_name :tags
|
2014-06-09 20:36:53 +02:00
|
|
|
- @event.tags.split.each do |tag|
|
|
|
|
= link_to tag, events_url(tag: tag)
|