Nessuna descrizione

baseTemplate.html 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {% load i18n %} {% get_current_language as LANGUAGE_CODE %}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="UTF-8" />
  6. <meta name="author" content="Seum Man" />
  7. <meta name="keywords" content="seum compteur" />
  8. <meta name="description" content="Ça fout le seum" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10. <link rel="shortcut icon" type="image/png" href="{{STATIC_URL}}/favicon.ico" />
  11. <title>SeumBook™ – {% block title %}{% endblock %}</title>
  12. {# Load the tag library #} {% load bootstrap3 %} {# Load CSS and JavaScript #} {% bootstrap_css %} {% bootstrap_javascript jquery=True %} {# Display django.contrib.messages as Bootstrap alerts #} {% bootstrap_messages %}
  13. <style>
  14. body {
  15. background-color: #EEEEEE
  16. }
  17. .seum-counter {
  18. height: 100px;
  19. overflow: auto;
  20. display: flex;
  21. align-items: center;
  22. }
  23. .primary-counter {
  24. height: 215px;
  25. overflow: auto;
  26. display: flex;
  27. align-items: center;
  28. }
  29. .timeline {
  30. height: 125px;
  31. }
  32. .graphs {
  33. overflow-y: hidden;
  34. }
  35. .graphs>div {
  36. display: block;
  37. margin: 0 auto;
  38. }
  39. .counter-link,
  40. .counter-link:hover {
  41. color: inherit;
  42. /* blue colors for links too */
  43. text-decoration: inherit;
  44. /* no underline */
  45. }
  46. </style>
  47. <script type="text/javascript" src="https://www.google.com/jsapi"></script>
  48. <script type="text/javascript">
  49. google.load("visualization", "1", {
  50. packages: ["corechart"]
  51. });
  52. function revealSeumForm(counterID) {
  53. document.getElementById('counter' + counterID).style.display = 'inline';
  54. document.getElementById('button' + counterID).style.display = 'none';
  55. document.getElementById('reason' + counterID).focus();
  56. }
  57. </script>
  58. </head>
  59. <section id="content">
  60. {% block content %}{% endblock %}
  61. </section>
  62. <div class="container">
  63. <div class="row text-center" style="padding-top:15px;">
  64. <form action="{% url 'set_language' %}" method="post">{% csrf_token %} {% if LANGUAGE_CODE == 'fr' %}
  65. <input name="language" type="hidden" value="en" />
  66. <input type="submit" class="btn btn-primary" value="English version" /> {% else %}
  67. <input name="language" type="hidden" value="fr" />
  68. <input type="submit" class="btn btn-primary" value="Version française" /> {% endif %}
  69. </form>
  70. </div>
  71. </div>
  72. </body>
  73. </html>