<!doctype html>
{% load staticfiles %}
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>{% block title %}COIN - Illyse SI{% endblock %}</title>
    <link rel="stylesheet" href="{% static "css/foundation.css"%}" />
    <link rel="stylesheet" href="{% static "css/font-awesome.min.css"%}" />
    <link rel="stylesheet" href="{% static "css/illyse.css" %}" />
    <link rel="stylesheet" href="{% static "css/offcanvas.css" %}">
    <script src="{% static "js/vendor/modernizr.js" %}"></script>
    <script src="{% static "js/illyse.js" %}"></script>
    <link rel="icon" type="image/png" href="{% static "img/coinitem.png" %}"/>
    <link rel="icon" type="image/x-icon" href="{% static "img/favicon.ico" %}" />
</head>
<body class="off-canvas-wrap">
<div class="row">
    <div class="large-12 columns inner-wrap">
    <header>
       <h1><a href="{% url 'home' %}">COIN est un Outil pour un Internet Neutre</a></h1>
    </header>
    
    {% if user.is_authenticated %}
    <div class="show-for-small">
        <a class="left-off-canvas-toggle button">Menu</a>
        <aside class="left-off-canvas-menu">
            <ul class="off-canvas-list">
                <li><label>Navigation</label></li>
                {% include "menu_items.html" %}
            </ul>
        </aside>
    </div>
    {% endif %}

    <div class="row">
        {% if user.is_authenticated %}
        <div class="large-3 columns">
            {% block sidenav %}
            <nav id="sidebox" class="hide-for-small">
            <ul class="side-nav">
                {% include "menu_items.html" %}
            </ul>
            </nav>
            {% endblock %}
        </div>
        {% endif %}
        
        <div class="large-{% if user.is_authenticated %}9{% else %}12{% endif %} columns">
            {% block content %}{% endblock %}
        </div>
    </div>

    <div id="footer">
        {% block footer %}
        <div class="row">
            <div class="large-5 columns"><div class="line">&nbsp;</div></div>
            <div class="large-2 columns"><div class="duck"></div></div>
            <div class="large-5 columns"><div class="line">&nbsp;</div></div>
        </div>
        {% endblock %}
    </div>


    <script src="{% static "js/vendor/jquery.js" %}"></script>
    <script src="{% static "js/foundation.min.js" %}"></script>
    <script src="{% static "js/foundation/foundation.offcanvas.js" %}"></script>

    <script>
      $(document).foundation();
    </script>
  </body>
</html>
