diff --git a/app/views/tags/show.html.haml b/app/views/tags/show.html.haml index 0efb4d03..333d2998 100644 --- a/app/views/tags/show.html.haml +++ b/app/views/tags/show.html.haml @@ -1,7 +1,15 @@ %h2 %em.fa.fa-tag + = title t '.title' + \- = title params[:id] +%h2 + %em.fa.fa-forward + = t '.future' + \- + = t '.count', count: @events_future.count + %aside %h1 %em.fa.fa-link @@ -46,14 +54,16 @@ %span= event.address %p= display_date 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), - attributes: %w(href src width height style title) + = 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] - 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 diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index 984b57d9..7ba4b74e 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -151,9 +151,14 @@ it more readable or agreable." index: title: Tags show: + title: Tag links: See also future: Future past: Past + count: + zero: + one: one event + other: "%{count} events" moderations: index: title: Events to moderate diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index f7918182..6b7cc9cb 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -165,9 +165,14 @@ l’évènement pour la rendre plus complète, plus lisible ou plus attrayante." index: title: Mots-clés show: + title: Mot-clé links: Voir aussi future: Prochainement past: Dans le passé + count: + zero: + one: Un événement + other: "%{count} événements" moderations: index: title: Événements à modérer diff --git a/config/locales/views/pt-BR.yml b/config/locales/views/pt-BR.yml index 8db5a71f..0e730e44 100644 --- a/config/locales/views/pt-BR.yml +++ b/config/locales/views/pt-BR.yml @@ -152,9 +152,14 @@ completa, deixando o texto mais legível e agradável. index: title: Tags show: + title: Tag links: Veja também future: Futuro past: Passado + count: + zero: + one: um evento + other: "%{count} eventos" moderations: index: title: Eventos para moderar