Event counts are added to the tags' pages

remotes/origin/master
echarp 4 years ago
parent a9c5d6bc55
commit 61529e4ecf
  1. 16
      app/views/tags/show.html.haml
  2. 5
      config/locales/views/en.yml
  3. 5
      config/locales/views/fr.yml
  4. 5
      config/locales/views/pt-BR.yml

@ -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

@ -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

@ -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

@ -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

Loading…
Cancel
Save