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.
 
 
 
 

38 lines
1.1 KiB

  1. {% extends "common/base.html" %}
  2. {% block link %}
  3. <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='vote.css') }}">
  4. {% endblock %}
  5. {% block style %}
  6. <style>
  7. body {
  8. background-color: {{ color }};
  9. }
  10. </style>
  11. {% endblock %}
  12. {% block content %}
  13. <section class="content">
  14. <h1>{{ word.text }}</h1>
  15. <h2>
  16. {% if word.text | wordcount == 1 %}
  17. Mot
  18. {% else %}
  19. Expression
  20. {% endif %}
  21. {% if word.left > word.right %}
  22. de gauche à {{ (word.left / (word.left + word.right) * 100) | round(1) }}%
  23. {% elif word.left < word.right %}
  24. de droite à {{ (word.right / (word.left + word.right) * 100) | round(1) }}%
  25. {% else %}
  26. ni de droite ni de gauche. Askip.
  27. {% endif %}
  28. </h2>
  29. <div class="controls">
  30. <a href="{{ url_left }}" id="left">Gauche</a>
  31. <a href="{{ url_index }}" id="skip">Sauter</a>
  32. <a href="{{ url_right }}" id="right">Droite</a>
  33. </div>
  34. </section>
  35. {% endblock %}