Event counts are added to the tags' pages

This commit is contained in:
echarp 2018-09-03 23:55:52 +02:00
parent a9c5d6bc55
commit 61529e4ecf
4 changed files with 28 additions and 3 deletions

View File

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

View File

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

View File

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

View File

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