<!DOCTYPE html>
<html>
  <head>
    <title>{% i18n site-title %}: {{title}}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="favicon.png">
    {% style "/content/stylesheet.css" %}
    {% block extra-headers %}
    {% endblock %}
  </head>
  <body>
    <header class="wiki">
      <!-- navbar -->
      <div id="nav">
        <img id="nav-icon" src="{{servlet-context}}/img/three-lines.png" alt="Menu"/>
        <menu id="nav-menu">
          <li class="{{wiki-selected}}"><a href="{{servlet-context}}/">{% i18n home-link %}</a></li>
          {% if admin %}
          <li class="{{edit-users-selected}}"><a href="{{servlet-context}}/edit-users">{% i18n edit-users-link %}</a></li>
          {% endif %}
          {% if user %}
          <li class="{{upload-selected}}"><a href="upload">{% i18n file-upload-title %}</a></li>
          <li class="{{passwd-selected}}"><a href="passwd">{% i18n change-pass-link %}</a></li>
          <li class="user" id="user">{% i18n logged-in-as}} {{user}}</li>
          <li class="{{auth-selected}}"><a href="{{servlet-context}}/auth">
            {% i18n logout-link %}</a></li>
          {% else %}
          <li class="{{auth-selected}}"><a href="{{servlet-context}}/auth">
            {% i18n login-link %}</a></li>
          {% endif %}
        </menu>
        <div id="phone-side-bar"  class="wiki">
            {{side-bar|safe}}
          <div id="phone-credits">
            <p>
              <img height="16" width="16" alt="one wiki to rule them all"
                   src="img/smeagol.png"/>One Wiki to rule them all ||
              Smeagol wiki engine {{version}} ||
              <img height="16" width="16"
                   alt="The Web Engineering Factory &amp; Toolworks"
                  src="https://www.weft.scot/images/weft.logo.64.png">
              Developed by <a href="http://www.weft.scot/">WEFT</a>
            </p>
          </div>
        </div>
      </div>
      <h1>{% i18n site-title %}: {{title}}</h1>
      <div id="header">
        {{header|safe}}
      </div>
      {% if message %}
      <div id="message">
        <p class="message">{{message}}</p>
      </div>
      {% endif %}
      {% if error %}
      <div id="error">
        <p class="error">{{error}}</p>
      </div>
      {% endif %}
    </header>
    <div id="side-bar"  class="wiki">
        {{side-bar|safe}}
    </div>

    <div id="main-container" class="container">
      {% block content %}
      {% endblock %}
    </div>
    <div id="cookies">
      <div id="more-about-cookies">
        {% i18n cookies-more %}
      </div>
      <div id="about-cookies">
        {% i18n cookies-about %}
      </div>
    </div>
    <footer>
       <div id="credits">
         <div>
           <img height="16" width="16" alt="one wiki to rule them all" src="img/smeagol.png"/>One Wiki to rule them all ||
           Smeagol wiki engine {{version}} ||
           <img height="16" width="16" alt="The Web Engineering Factory &amp; Toolworks" src="https://www.weft.scot/images/weft.logo.64.png"> Developed by <a href="http://www.weft.scot/">WEFT</a>
         </div>
         <div>
           Built with <a href="http://www.luminusweb.net/">LuminusWeb</a> ||
           <img height="16" width="16" alt="Clojure" src="img/clojure-icon.gif"/> Powered by <a href="http://clojure.org">Clojure</a> ||
           <img height="16" width="16" alt="GitHub" src="img/github-logo-transparent.png"/>Find me/fork me on <a href="https://github.com/simon-brooke/smeagol">Github</a> ||
           <img height="16" width="16" alt="Free Software Foundation" src="img/gnu.small.png"/>Licensed under the <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU General Public License version 2.0</a>
         </div>
      </div>
    <footer>
  </body>
</html>
