diff --git a/app/views/events/show.html.haml b/app/views/events/show.html.haml index f28b55e5..c96c3fa4 100644 --- a/app/views/events/show.html.haml +++ b/app/views/events/show.html.haml @@ -39,7 +39,7 @@ %img(src='https://www.openstreetmap.org/assets/osm_logo.png' alt='OSM logo' width='22px') -%h3= t '.description' +%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], diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 5c6eb318..15403ad5 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -10,7 +10,9 @@ = favicon_link_tag '/favicon.ico' = 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 = csrf_meta_tags diff --git a/app/views/orgas/show.html.haml b/app/views/orgas/show.html.haml index db7637ec..ef2823c4 100644 --- a/app/views/orgas/show.html.haml +++ b/app/views/orgas/show.html.haml @@ -23,7 +23,7 @@ .orga#map{ data: { url: maps_path(format: :json).to_s, latitude: @orga.latitude.to_s, longitude: @orga.longitude.to_s } } -%h3= t '.description' +%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], diff --git a/config/locales/views/de.yml b/config/locales/views/de.yml index 5459f981..537ab86c 100644 --- a/config/locales/views/de.yml +++ b/config/locales/views/de.yml @@ -38,7 +38,6 @@ de: dateAndPlace: Datum und Veranstaltungsort noMap: Mit dieser Adresse konnte keine Karte verknüpft werden. Sie können andere Syntax hier testen - description: Beschreibung infos: Informationen aside: orga-list: Orga der Region diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 99769d97..1eb4f231 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -38,7 +38,6 @@ en: dateAndPlace: Date and place noMap: No OpenStreetMap map could be associated to this address. You can test other syntaxes here - description: Description infos: Informations aside: orga-list: Region's orgas diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index c2d108b5..cfe56c5a 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -38,7 +38,6 @@ fr: dateAndPlace: Date et lieu noMap: Aucune carte n'a pu être associée à cette adresse. Vous pouvez tester d'autres syntaxes ici - description: Description infos: Informations aside: orga-list: Orgas de la région diff --git a/config/locales/views/nl.yml b/config/locales/views/nl.yml index 31d18c8f..be1c276e 100644 --- a/config/locales/views/nl.yml +++ b/config/locales/views/nl.yml @@ -38,7 +38,6 @@ nl: dateAndPlace: Datum en evenement plaats noMap: Aan dit adres kan geen kaart gekoppeld worden. Andere syntaxen kunnen hier getestet worden - description: Beschrijving infos: Informatie aside: orga-list: Orgas van de regio diff --git a/config/locales/views/pt-BR.yml b/config/locales/views/pt-BR.yml index 71ddfee5..fb9ff540 100644 --- a/config/locales/views/pt-BR.yml +++ b/config/locales/views/pt-BR.yml @@ -38,7 +38,6 @@ pt-BR: dateAndPlace: Data e local noMap: Não foi possível associar um mapa no OpenStreetMap a este endereço. Você pode testar outras sintaxes aqui - description: Descrição infos: Informações aside: orga-list: Organizações no estado