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>
|
<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>
|
||||||
|
|
Loading…
Reference in a new issue