Sen descrición

baseTemplate.html 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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: 75px;
  19. overflow: auto;
  20. }
  21. .primary-counter {
  22. height: 215px;
  23. overflow: auto;
  24. display: flex;
  25. align-items: center;
  26. }
  27. .timeline {
  28. height: 125px;
  29. }
  30. .graphs {
  31. overflow-y: hidden;
  32. }
  33. .graphs>div {
  34. display: block;
  35. margin: 0 auto;
  36. }
  37. .counter-link,
  38. .counter-link:hover {
  39. color: inherit;
  40. /* blue colors for links too */
  41. text-decoration: inherit;
  42. /* no underline */
  43. }
  44. </style>
  45. <script type="text/javascript" src="https://www.google.com/jsapi"></script>
  46. <script type="text/javascript">
  47. google.load("visualization", "1", {
  48. packages: ["corechart"]
  49. });
  50. function revealSeumForm(counterID) {
  51. document.getElementById('counter' + counterID).style.display = 'inline';
  52. document.getElementById('button' + counterID).style.display = 'none';
  53. document.getElementById('reason' + counterID).focus();
  54. }
  55. </script>
  56. </head>
  57. <section id="content">
  58. {% block content %}{% endblock %}
  59. </section>
  60. <div class="container">
  61. <div class="text-center">
  62. <form action="{% url 'set_language' %}" method="post">{% csrf_token %} {% if LANGUAGE_CODE == 'fr' %}
  63. <input name="language" type="hidden" value="en" />
  64. <input type="submit" class="btn btn-primary" value="English version" /> {% else %}
  65. <input name="language" type="hidden" value="fr" />
  66. <input type="submit" class="btn btn-primary" value="Version française" /> {% endif %}
  67. </form>
  68. </div>
  69. </div>
  70. </body>
  71. </html>