agenda-libre-ruby/app/views/events/show.html.haml

52 lines
1.3 KiB
Plaintext

- if request.format == 'text/html' && controller.controller_name != 'moderations' && controller.controller_name != 'notes'
%p#notice= notice
#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
%h2
%em= @event.city + ':'
= @event.title
%h3 Date et lieu
%p
- 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
#{l @event.end_time, format: :at}.
%p
À
%em= link_to(@event.city, "http://fr.wikipedia.org/wiki/#{@event.city}") + ','
= link_to @event.region.name, "http://fr.wikipedia.org/wiki/#{@event.region.name}" rescue nil
%h3 Description
=raw @event.description
%h3 Informations
%p
Site Web:
= link_to @event.url, @event.url
%p
Contact:
= mail_to @event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT '), @event.contact.gsub('@', ' CHEZ ').gsub('.', ' POINT ')
- if (@event.tags && @event.tags.present?)
%p
Tags:
=raw @event.tags.split.collect { |tag| link_to tag, events_url(tag: tag) }.join(', ')