adding condition for displaying message with number of result

Now, the message "Result x-y of z" displays only if the number
of events in result is > 0
This commit is contained in:
Julien Fastré 2016-09-02 08:24:25 +02:00
parent 82b0fad8de
commit 99c1d488e3

View File

@ -2,9 +2,10 @@
<p>{% transchoice total with { '%pattern%' : pattern } %}%total% events match the search %pattern%{% endtranschoice %}</p> <p>{% transchoice total with { '%pattern%' : pattern } %}%total% events match the search %pattern%{% endtranschoice %}</p>
{% if events|length > 0 %}
<p>{{ 'Results %start%-%end% of %total%'|trans({ '%start%' : start, '%end%': start + events|length, '%total%' : total } ) }}</p> <p>{{ 'Results %start%-%end% of %total%'|trans({ '%start%' : start, '%end%': start + events|length, '%total%' : total } ) }}</p>
{% if events|length > 0 %}
<table class="events"> <table class="events">
<thead> <thead>
<tr> <tr>