base.html 2.2 KB
Newer Older
Hubert Denkmair's avatar
Hubert Denkmair committed
1
2
3
4
5
{% load static %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
Hubert Denkmair's avatar
Hubert Denkmair committed
6
7
8
{% block title %}
    <title>Schlangenprogrammiernacht 2018</title>
{% endblock %}
nachtgold's avatar
nachtgold committed
9
10

{% block earlycss %}
nachtgold's avatar
nachtgold committed
11
{% endblock %}   
nachtgold's avatar
nachtgold committed
12
    <link rel="stylesheet" type="text/css" href="{% static "core/jquery.growl.css" %}" />
nachtgold's avatar
nachtgold committed
13
14
    <link rel="stylesheet" type="text/css" href="{% static "core/checkbox.min.css" %}" />
    <link rel="stylesheet" type="text/css" href="{% static "core/header.min.css" %}" />
15
16
    <link rel="stylesheet" type="text/css" href="{% static "core/form.min.css" %}" />
    <link rel="stylesheet" type="text/css" href="{% static "core/segment.min.css" %}" />
nachtgold's avatar
nachtgold committed
17

Hubert Denkmair's avatar
Hubert Denkmair committed
18
    <link rel="stylesheet" type="text/css" href="{% static "core/styles.css" %}" />
nachtgold's avatar
nachtgold committed
19
    
20
    <link rel="stylesheet" type="text/css" href="{% static "highscore/highscore.css" %}" />
21
22
23
    <link rel="stylesheet" type="text/css" href="{% static "core/button.min.css" %}" />
    <link rel="stylesheet" type="text/css" href="{% static "core/table.min.css" %}" />
    <link rel="stylesheet" type="text/css" href="{% static "core/icon.min.css" %}" />
Hubert Denkmair's avatar
Hubert Denkmair committed
24
25
{% block css %}
{% endblock %}
nachtgold's avatar
nachtgold committed
26

Hubert Denkmair's avatar
Hubert Denkmair committed
27
28
  </head>
  <body>
Hubert Denkmair's avatar
Hubert Denkmair committed
29
    <ul class="nav">
Hubert Denkmair's avatar
Hubert Denkmair committed
30
      <li><a href="{% url 'home' %}">Home</a></li>
Hubert Denkmair's avatar
Hubert Denkmair committed
31
      <li><a href="{% url 'watch' %}">Watch</a></li>
Hubert Denkmair's avatar
Hubert Denkmair committed
32
      {% if user.is_authenticated %}
33
        <li><a href="{% url 'snake_edit_latest' %}">Code</a></li>
Hubert Denkmair's avatar
Hubert Denkmair committed
34
35
      {% endif %}
      <li><a href="{% url 'docs' %}">API</a></li>
36
      <li><a href="{% url 'highscore_table' %}">Highscores</a></li>
Hubert Denkmair's avatar
Hubert Denkmair committed
37
      {% if user.is_authenticated %}
Hubert Denkmair's avatar
Hubert Denkmair committed
38
        <li><a href="{% url 'logout' %}">Logout</a></li>
Hubert Denkmair's avatar
Hubert Denkmair committed
39
      {% else %}
Hubert Denkmair's avatar
Hubert Denkmair committed
40
41
        <li><a href="{% url 'login' %}">Login</a></li>
        <li><a href="{% url 'signup' %}">Signup</a></li>
Hubert Denkmair's avatar
Hubert Denkmair committed
42
43
44
      {% endif %}
    </ul>

Hubert Denkmair's avatar
Hubert Denkmair committed
45
    <div class="content">
Hubert Denkmair's avatar
Hubert Denkmair committed
46
47
{% block content %}
{% endblock %}
Hubert Denkmair's avatar
Hubert Denkmair committed
48
    </div>
Hubert Denkmair's avatar
Hubert Denkmair committed
49

Hubert Denkmair's avatar
Hubert Denkmair committed
50
51
52
53
54
    <div class="footer">
      <img id="snake" src="{% static "core/snake200.png" %}">
      (c) 2018 <a href="https://www.bytewerk.org/">bytewerk.org</a>
    </div>

nachtgold's avatar
nachtgold committed
55
56
57
58
59
    <script src="{% static "core/jquery-3.3.1.min.js" %}"></script>
    <script src="{% static "core/checkbox.min.js" %}"></script>
    <script src="{% static "core/jquery.growl.js" %}"></script>
    {% block js %}
    {% endblock %}
Hubert Denkmair's avatar
Hubert Denkmair committed
60
61
  </body>
</html>