On rajoute un tooltip pour expliquer les duels
This commit is contained in:
parent
7c4656d5dd
commit
7460785e53
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue