Détermination du bord politique de mots divers http://clivage.foxgl.ovh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

results.html 1.6 KiB

1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {% extends "common/base.html" %}
  2. {% block link %}
  3. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='results.css') }}">
  4. {% endblock %}
  5. {% block style %}
  6. <style>
  7. body {
  8. background-color: {{ color }};
  9. }
  10. td, th, table {
  11. border-color: {{ color }};
  12. }
  13. </style>
  14. {% endblock %}
  15. {% block content %}
  16. <h1> Mots ayant reçu des votes </h1>
  17. {% if results %}
  18. <table>
  19. {% if results | length > 0 %}
  20. <tr>
  21. <th>Mot ou expression</th>
  22. <th>Votes "gauche"</th>
  23. <th>Votes "droite"</th>
  24. <th>Bord</th>
  25. </tr>
  26. {% endif %}
  27. {% for result in results %}
  28. <tr>
  29. <td><a href="{{ result.url }}">{{ result.word }}</a></td>
  30. <td>{{ result.left }} <span class="percentage">({{ result.left_percentage }}%)</span></td>
  31. <td>{{ result.right }} <span class="percentage">({{ result.right_percentage }}%)</span></td>
  32. <td class="{% if result.major == -1 %}left{% elif result.major == 1 %}right{% else %}center{% endif %}">
  33. {% if result.major == -1 %}
  34. gauche
  35. {% elif result.major == 1 %}
  36. droite
  37. {% else %}
  38. centre
  39. {% endif %}
  40. </td>
  41. </tr>
  42. {% endfor %}
  43. </table>
  44. {% endif %}
  45. {% endblock %}