summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: 9f45c872d20b5d2dc8e48be3c39d36a2124da194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{% block title %}{{ title }}{% endblock %}</title>
    <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}">
    <script src="{{ url_for('static', filename='jquery.js') }}"></script>
</head>
<body>
<div id="content" class="content">
    {% block body %}
        No content found. THIS IS AN ERROR
    {% endblock %}
</div>
<div class="footer">
    <a href="/">Home</a>
    &bullet;
    {% if admin %}
        <a href="{{ url_for('logout') }}">Admin logout</a>
        &bullet;
        <a href="{{ url_for('new_project_form') }}">New Project</a>
        {% block admin_footer %}{% endblock %}
    {% else %}
        <a href="{{ url_for('login') }}">Admin login</a>
    {% endif %}
    {% block footer %}
    {% endblock %}
</div>
</body>
</html>