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> <tbody>
{% for line in matrix %} {% for line in matrix %}
{% with loser=forloop.counter %}
<tr> <tr>
<th class="has-text-centered"> <th class="has-text-centered">
<span class="icon"> <span class="icon">
@ -31,9 +32,10 @@
</th> </th>
{% for cell in line %} {% 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 %} {% endfor %}
</tr> </tr>
{% endwith %}
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>