base.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!doctype html>
  2. {% load staticfiles %}
  3. {% load hijack_tags %}
  4. <html class="no-js" lang="en">
  5. <head>
  6. <meta charset="utf-8" />
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  8. <title>{% block title %}{{ SITE_TITLE }}{% endblock %}</title>
  9. <link rel="stylesheet" href="{% static "css/foundation.css"%}" />
  10. <link rel="stylesheet" href="{% static "css/font-awesome.min.css"%}" />
  11. <link rel="stylesheet" href="{% static "css/local.css" %}" />
  12. <link rel="stylesheet" href="{% static "css/offcanvas.css" %}">
  13. <link rel="stylesheet" type="text/css" href="{% static 'hijack/hijack-styles.css' %}" />
  14. {% block extra_css %}{% endblock %}
  15. <script src="{% static "js/vendor/modernizr.js" %}"></script>
  16. <link rel="icon" type="image/png" href="{% static "img/coinitem.png" %}"/>
  17. <link rel="icon" type="image/x-icon" href="{% static "img/favicon.ico" %}" />
  18. </head>
  19. <body>
  20. {% hijack_notification %}
  21. <div class="off-canvas-wrap" data-offcanvas>
  22. <div class="inner-wrap">
  23. {% if user.is_authenticated %}
  24. <aside class="left-off-canvas-menu">
  25. <ul class="off-canvas-list">
  26. <li><label>Menu</label></li>
  27. {% include "menu_items.html" %}
  28. </ul>
  29. </aside>
  30. {% endif %}
  31. <header>
  32. <div class="show-for-medium-up">
  33. <div class="row">
  34. <div class="large-12">
  35. <h1>
  36. {% if SITE_LOGO_URL %}
  37. <span class="medium-3 large-3 columns">
  38. <img src="{{ SITE_LOGO_URL }}" alt="" />
  39. </span
  40. {% else %}
  41. <span class="default-logo">&nbsp;</span>
  42. {% endif %}
  43. <a href="{% url 'home' %}">{{ SITE_HEADER }}</a>
  44. </h1>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="show-for-small">
  49. <nav class="tab-bar">
  50. {% if user.is_authenticated %}
  51. <section class="left-small">
  52. <a class="left-off-canvas-toggle menu-icon" href="#"><span></span></a>
  53. </section>
  54. {% endif %}
  55. <section class="middle tab-bar-section">
  56. <h1 class="title">COIN</h1>
  57. </section>
  58. </nav>
  59. </div>
  60. </header>
  61. <div class="row">
  62. {% if user.is_authenticated %}
  63. <div class="medium-3 large-3 columns">
  64. {% block sidenav %}
  65. <nav id="sidebox" class="show-for-medium-up">
  66. <ul class="side-nav">
  67. {% include "menu_items.html" %}
  68. </ul>
  69. </nav>
  70. {% endblock %}
  71. </div>
  72. {% endif %}
  73. <div class="medium-{% if user.is_authenticated %}9{% else %}12{% endif %} large-{% if user.is_authenticated %}9{% else %}12{% endif %} columns">
  74. {% block content %}{% endblock %}
  75. </div>
  76. </div>
  77. <div id="footer">
  78. {% block footer %}
  79. <div class="row">
  80. <div class="small-5 columns"><div class="line">&nbsp;</div></div>
  81. <div class="small-2 columns"><div class="duck"></div></div>
  82. <div class="small-5 columns"><div class="line">&nbsp;</div></div>
  83. </div>
  84. <p class="licence-sentence">Site propulsé par <a href="https://code.ffdn.org/FFDN/coin">COIN</a> sous licence AGPLv3.</p>
  85. {% endblock %}
  86. </div>
  87. <a class="exit-off-canvas"></a>
  88. </div> <!-- .inner-wrap -->
  89. </div> <!-- .off-canvas-wrap -->
  90. <script src="{% static "js/vendor/jquery.js" %}"></script>
  91. <script src="{% static "js/foundation.min.js" %}"></script>
  92. <script src="{% static "js/foundation/foundation.offcanvas.js" %}"></script>
  93. <script src="{% static "js/utils.js" %}"></script>
  94. {% block extra_js %}{% endblock extra_js %}
  95. <script>
  96. $(document).foundation();
  97. </script>
  98. </body>
  99. </html>