Organisation description translated on related screens

This commit is contained in:
echarp 2019-05-15 20:17:07 +02:00
parent 6b695d7350
commit dbc738c16e
8 changed files with 5 additions and 8 deletions

View File

@ -39,7 +39,7 @@
%img(src='https://www.openstreetmap.org/assets/osm_logo.png' %img(src='https://www.openstreetmap.org/assets/osm_logo.png'
alt='OSM logo' width='22px') alt='OSM logo' width='22px')
%h3= t '.description' %h3= Event.human_attribute_name :description
.description .description
= description sanitize @event.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], tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],

View File

@ -10,7 +10,9 @@
= favicon_link_tag '/favicon.ico' = favicon_link_tag '/favicon.ico'
= auto_discovery_link_tag :rss, controller: '/events', format: :rss = auto_discovery_link_tag :rss, controller: '/events', format: :rss
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
= stylesheet_link_tag 'application', media: 'all',
'data-turbolinks-track' => true
= javascript_include_tag 'application', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags = csrf_meta_tags

View File

@ -23,7 +23,7 @@
.orga#map{ data: { url: maps_path(format: :json).to_s, .orga#map{ data: { url: maps_path(format: :json).to_s,
latitude: @orga.latitude.to_s, longitude: @orga.longitude.to_s } } latitude: @orga.latitude.to_s, longitude: @orga.longitude.to_s } }
%h3= t '.description' %h3= Orga.human_attribute_name :description
.description .description
= description sanitize @orga.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], tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],

View File

@ -38,7 +38,6 @@ de:
dateAndPlace: Datum und Veranstaltungsort dateAndPlace: Datum und Veranstaltungsort
noMap: Mit dieser Adresse konnte keine Karte verknüpft werden. Sie können noMap: Mit dieser Adresse konnte keine Karte verknüpft werden. Sie können
andere Syntax hier testen andere Syntax hier testen
description: Beschreibung
infos: Informationen infos: Informationen
aside: aside:
orga-list: Orga der Region orga-list: Orga der Region

View File

@ -38,7 +38,6 @@ en:
dateAndPlace: Date and place dateAndPlace: Date and place
noMap: No OpenStreetMap map could be associated to this address. You can noMap: No OpenStreetMap map could be associated to this address. You can
test other syntaxes here test other syntaxes here
description: Description
infos: Informations infos: Informations
aside: aside:
orga-list: Region's orgas orga-list: Region's orgas

View File

@ -38,7 +38,6 @@ fr:
dateAndPlace: Date et lieu dateAndPlace: Date et lieu
noMap: Aucune carte n'a pu être associée à cette adresse. Vous pouvez noMap: Aucune carte n'a pu être associée à cette adresse. Vous pouvez
tester d'autres syntaxes ici tester d'autres syntaxes ici
description: Description
infos: Informations infos: Informations
aside: aside:
orga-list: Orgas de la région orga-list: Orgas de la région

View File

@ -38,7 +38,6 @@ nl:
dateAndPlace: Datum en evenement plaats dateAndPlace: Datum en evenement plaats
noMap: Aan dit adres kan geen kaart gekoppeld worden. Andere syntaxen noMap: Aan dit adres kan geen kaart gekoppeld worden. Andere syntaxen
kunnen hier getestet worden kunnen hier getestet worden
description: Beschrijving
infos: Informatie infos: Informatie
aside: aside:
orga-list: Orgas van de regio orga-list: Orgas van de regio

View File

@ -38,7 +38,6 @@ pt-BR:
dateAndPlace: Data e local dateAndPlace: Data e local
noMap: Não foi possível associar um mapa no OpenStreetMap a este endereço. noMap: Não foi possível associar um mapa no OpenStreetMap a este endereço.
Você pode testar outras sintaxes aqui Você pode testar outras sintaxes aqui
description: Descrição
infos: Informações infos: Informações
aside: aside:
orga-list: Organizações no estado orga-list: Organizações no estado