<!DOCTYPE html>
{% set fluid = False %}
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="{{ static_url('css/custom.css') }}">
    <link rel="stylesheet" href="{{ static_url('css/bootstrap.min.css') }}">
    <title>{% block title %}Taguette{% endblock %}</title>
  </head>
  <body>
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary" id="special-nav">
      <div class="container">
        <a class="navbar-brand special-brand" href="{{ reverse_url('index') }}">Taguette</a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarColor01">
          <ul class="navbar-nav mr-auto">
            <li class="nav-item {{ 'active' if active_page == 'index' else '' }}">
              <a class="nav-link" href="{{ reverse_url('index') }}">Home</a>
            </li>
            {% if project %}
            <li class="nav-item {{ 'active' if active_page == 'project' else '' }}">
              <a class="nav-link project-name" href="{{ reverse_url('project', project.id) }}">{{ project.name }}</a>
            </li>
            {% endif %}
          </ul>
          <ul class="navbar-nav ml-auto">
            {% if not multiuser %}
            <li class="nav-item">Single-user mode</li>
            {% elif current_user %}
            <li class="nav-item">
              <a class="nav-link" href="{{ reverse_url('logout') }}">Logout</a>
            </li>
            {% else %}
            <li class="nav-item {{ 'active' if active_page == 'login' else '' }}">
              <a class="nav-link" href="{{ reverse_url('login') }}">Login</a>
            </li>
            {% endif %}
          </ul>
        </div>
      </div>
    </nav>

    <div class="{% block containerclass %}container{% endblock %} container-body">
      {% block contents %}{% endblock %}

      <footer class="footer">
        <hr/>
        <div class="container">
          <p>Copyright (c) Rémi Rampin</p>
        </div>
      </footer>
    </div>

    <script src="{{ static_url('js/jquery-3.3.1.min.js') }}"></script>
    <script src="{{ static_url('js/bootstrap.bundle.min.js') }}"></script>
  </body>
</html>
