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

Small simplification to events and orga display

parent 7ddfdff7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -12,8 +12,6 @@
= render 'aside' if [controller_name, action_name] == %w[events show]
%h3= t '.dateAndPlace'
%p= display_date @event
%p.full_address
......@@ -38,7 +36,6 @@
href: 'https://osm.org/search?query=' + @event.full_address }
= image_tag 'osm_logo.svg', alt: 'OSM logo', width: '32px'
%h3= Event.human_attribute_name :description
.description
= 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],
......
......@@ -7,7 +7,7 @@
= title @orga.name
= render partial: '/orgas/favicon', locals: { orga: @orga }
= render 'aside' if controller.controller_name == 'orgas'
= render 'aside' if [controller_name, action_name] == %w[orgas show]
%p.full_address
- if @orga.place_name.present?
......@@ -23,13 +23,16 @@
.orga#map{ data: { url: maps_path(format: :json).to_s,
latitude: @orga.latitude.to_s, longitude: @orga.longitude.to_s } }
%h3= Orga.human_attribute_name :description
.description
= description sanitize @orga.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]
%dl
%dd
%h3
%em.fa.fa-info-circle
= t '.infos'
- if @orga.department.present?
%dt.department
%em.fa.fa-puzzle-piece
......
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