2014-02-18 09:28:04 +01:00
|
|
|
- if request.format == 'text/html' && controller.controller_name != 'moderations' && controller.controller_name != 'notes'
|
2014-01-02 01:32:32 +01:00
|
|
|
%p#notice= notice
|
2013-12-28 23:45:13 +01:00
|
|
|
|
2014-01-01 21:26:35 +01:00
|
|
|
#lug-list
|
|
|
|
%h1=t '.lug-list'
|
|
|
|
- if @event.region
|
|
|
|
%ul
|
|
|
|
- @event.region.lugs.order(department: :asc).each do |lug|
|
|
|
|
%li
|
|
|
|
= link_to lug.name, lug.url
|
|
|
|
(#{lug.department})
|
|
|
|
|
|
|
|
%h1 Actions
|
|
|
|
= link_to t('.add_to_calendar'), root_url
|
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-01-02 01:32:32 +01:00
|
|
|
%h3 Date et lieu
|
2013-12-29 23:25:38 +01:00
|
|
|
|
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
|
2013-12-29 23:25:38 +01:00
|
|
|
À
|
2014-01-02 01:32:32 +01:00
|
|
|
%em= link_to(@event.city, "http://fr.wikipedia.org/wiki/#{@event.city}") + ','
|
2014-01-01 21:26:35 +01:00
|
|
|
= link_to @event.region.name, "http://fr.wikipedia.org/wiki/#{@event.region.name}" rescue nil
|
2013-12-29 23:25:38 +01:00
|
|
|
|
|
|
|
%h3 Description
|
|
|
|
=raw @event.description
|
|
|
|
|
|
|
|
%h3 Informations
|
2013-12-28 23:45:13 +01:00
|
|
|
%p
|
2013-12-29 23:25:38 +01:00
|
|
|
Site Web:
|
|
|
|
= link_to @event.url, @event.url
|
2013-12-28 23:45:13 +01:00
|
|
|
%p
|
2013-12-29 23:25:38 +01:00
|
|
|
Contact:
|
|
|
|
= mail_to @event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT '), @event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT ')
|
2013-12-28 23:45:13 +01:00
|
|
|
|
2013-12-29 23:25:38 +01:00
|
|
|
- if (@event.tags && @event.tags.present?)
|
|
|
|
%p
|
|
|
|
Tags:
|
2014-01-02 01:32:32 +01:00
|
|
|
=raw @event.tags.split.collect { |tag| link_to tag, events_url(tag: tag) }.join(', ')
|