mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
Fix deprecation of transchoice
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
<h2>{{ 'Event search'|trans }}</h2>
|
||||
|
||||
<p>{% transchoice total with { '%pattern%' : pattern } %}%total% events match the search %pattern%{% endtranschoice %}</p>
|
||||
<p>
|
||||
{{ 'total events match the search'|trans({'total' : total}) }} :
|
||||
<a href="{{ path('chill_main_advanced_search', { "name": search_name, "q": pattern } ) }}" class="btn btn-sm">
|
||||
<i class="fa fa-search" aria-hidden="true"></i> {{ pattern }}
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<style>
|
||||
table.events td:last-child {
|
||||
|
@@ -67,7 +67,7 @@
|
||||
|
||||
<h2>{{ 'Participations'|trans }}</h2>
|
||||
{% set count = event.participations|length %}
|
||||
<p>{% transchoice count %}%count% participations to this event{% endtranschoice %}</p>
|
||||
<p>{{ 'count participations to this event'|trans({'count': count}) }}</p>
|
||||
|
||||
{% if count > 0 %}
|
||||
<table class="table table-bordered border-dark align-middle">
|
||||
|
Reference in New Issue
Block a user