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

83 lines
2.3 KiB
Plaintext
Raw Normal View History

- if params[:id].include? 'libre-en-fete'
Ces événements s'inscrivent dans le cadre de
%a(href='https://www.libre-en-fete.net')
= image_tag 'lef.png', width: '180', height: '60', alt: 'Libre en Fete',
style: 'vertical-align: middle'
- elsif params[:id].include? 'linux-presentation-day'
Ces événements s'inscrivent dans le cadre de
%a(href='http://www.linux-presentation-day.org')
= image_tag 'linux-presentation-day.png',
width: '150', height: '75', alt: 'Linux presentation day',
style: 'vertical-align: middle'
2014-01-05 22:10:11 +01:00
%h2
2016-10-18 15:37:03 +02:00
%em.fa.fa-tag
= title params[:id]
\-
2018-10-17 18:42:46 +02:00
%em.fa.fa-forward
= t '.count', count: @events_future.count
2016-10-18 15:37:03 +02:00
%aside
2018-10-17 16:00:47 +02:00
%h2
2016-10-18 15:37:03 +02:00
%em.fa.fa-link
= t '.links'
2016-10-18 15:37:03 +02:00
%ul.fa-ul
%li
= link_to tags_path, class: :back do
%em.fa.fa-li.fa-arrow-left
= Event.human_attribute_name :tags
%li
= link_to events_path tag: params[:id] do
%em.fa.fa-li.fa-calendar
Agenda
%li
= link_to events_path format: :rss, tag: params[:id] do
%em.fa.fa-li.fa-rss
RSS
%li
= link_to events_path format: :ics, tag: params[:id] do
%em.fa.fa-li.fa-th-list
iCal
%li
= link_to maps_path tag: params[:id] do
%em.fa.fa-li.fa-map-marker
OpenStreetMap
%li
= link_to maps_path format: :json, tag: params[:id] do
2018-02-11 18:06:32 +01:00
%em.fa.fa-li.fa-dot-circle
2016-10-18 15:37:03 +02:00
GeoJSON
2014-01-05 22:10:11 +01:00
- @events_future.order('start_time asc').each do |event|
%article.event
%h3
2017-05-07 21:44:24 +02:00
= link_to event do
%em.city= event.city
= event.title
%p.full_address
- if event.place_name.present?
%span= event.place_name
- if event.address.present?
%span= event.address
%p= display_date event
.description
= sanitize event.description,
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
attributes: %w[href src width height style title]
2014-01-05 22:10:11 +01:00
- if @events_past.any?
%h2
%em.fa.fa-backward
= t '.past'
\-
= t '.count', count: @events_past.count
%ul.fa-ul
- @events_past.order('start_time desc').each do |event|
%li
= link_to event do
- if event.locality?
%em.locality.fa-li.fa.fa-globe
%em.city{ title: event.address }= event.city
= event.title
.date= display_date event