On rajoute un tooltip pour expliquer les duels

This commit is contained in:
Tom Hubrecht 2021-04-07 19:12:33 +02:00
parent 7c4656d5dd
commit 7460785e53

View file

@ -22,6 +22,7 @@
<tbody>
{% for line in matrix %}
{% with loser=forloop.counter %}
<tr>
<th class="has-text-centered">
<span class="icon">
@ -31,9 +32,10 @@
</th>
{% for cell in line %}
<td class="has-text-centered">{{ cell }}</td>
<td class="has-text-centered has-tooltip-primary" {% if cell %}data-tooltip="{% blocktrans with winner=forloop.counter %}L'option {{ winner }} gagne le duel contre l'option {{ loser }} par {{ cell }} voix {% endblocktrans %}{% endif %}">{{ cell }}</td>
{% endfor %}
</tr>
{% endwith %}
{% endfor %}
</tbody>
</table>