Skip to content
Extraits de code Groupes Projets
Valider 7605c39d rédigé par echarp's avatar echarp
Parcourir les fichiers

Cleaner haml template

parent de30da7c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,25 +2,36 @@ ...@@ -2,25 +2,36 @@
%em.fa.fa-rss %em.fa.fa-rss
= title t '.title' = title t '.title'
%p=t '.quick' %p= t '.quick'
%table.list %table.list
%thead %thead
%tr %tr
%th= link_to t(:all, scope: 'activerecord.attributes.region.name_values'), root_path %th= link_to t(:all,
scope: 'activerecord.attributes.region.name_values'), root_path
%th= link_to 'RSS', events_path(format: :rss, region: :all) %th= link_to 'RSS', events_path(format: :rss, region: :all)
%th= link_to :webcal, events_path(protocol: :webcal, format: :ics, region: :all, only_path: false) %th= link_to :webcal,
%th= link_to :iCal, events_path(format: :ics, region: :all, only_path: false) events_path(protocol: :webcal, format: :ics, region: :all,
%th= link_to :GeoJSON, maps_path(format: :json, region: :all, only_path: false) only_path: false)
%th= link_to :iCal,
events_path(format: :ics, region: :all, only_path: false)
%th= link_to :GeoJSON,
maps_path(format: :json, region: :all, only_path: false)
%tbody %tbody
- @regions.find_each do |region| - @regions.find_each do |region|
%tr %tr
%td= link_to region.name, events_path(region: region.id) %td= link_to region.name, events_path(region: region.id)
%td= link_to 'RSS', events_path(format: :rss, region: region.id) %td= link_to 'RSS', events_path(format: :rss, region: region.id)
%td= link_to :webcal, events_path(protocol: :webcal, format: :ics, region: region.id, only_path: false) %td= link_to :webcal,
%td= link_to :iCal, events_path(format: :ics, region: region.id, only_path: false) events_path(protocol: :webcal, format: :ics, region: region.id,
%td= link_to :GeoJSON, maps_path(format: :json, region: region.id, only_path: false) only_path: false)
%td= link_to :iCal,
events_path(format: :ics, region: region.id, only_path: false)
%td= link_to :GeoJSON,
maps_path(format: :json, region: region.id, only_path: false)
:markdown :markdown
#{t '.help', tag: events_path(format: :rss, tag: 'toulibre', only_path: false), daylimit: events_path(format: :ics, daylimit: '42', only_path: false)} #{t '.help',
tag: events_path(format: :rss, tag: 'toulibre', only_path: false),
daylimit: events_path(format: :ics, daylimit: '42', only_path: false)}
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter