commit 7fa3c28fcb112e096473ae2c13b2dc91c8e2f369
parent 72a268ed76fcae5681d7b4c898efd4ee7f748457
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Wed, 14 Mar 2012 19:06:03 +0100
correct agreement
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/views/results.html b/views/results.html
@@ -16,12 +16,14 @@
{% if lang == 'fr' %}
<h2 class="incorrect">Ce poème est invalide pour le modèle
<span class="template">{{template}}</span> !
- <p id="firsterror">{{nerror}} erreur(s) trouvée(s) — <a
+ <p id="firsterror">{{nerror}} erreur{% if nerror != 1 %}s{%endif%}
+ trouvée{% if nerror != 1 %}s{%endif%} — <a
href="#l{{firsterror}}">aller à la première erreur</a></p></h2>
{% else %}
<h2 class="incorrect">This poem is invalid for template
<span class="template">{{template}}</span>!
- <p id="firsterror">{{nerror}} error(s) found — <a
+ <p id="firsterror">{{nerror}} error{% if nerror != 1 %}s{%endif%} found
+ — <a
href="#l{{firsterror}}">jump to first error</a></p></h2>
{% endif %}
<ol class="incorrect" id="dump">