aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 4ae9c65a175c8d279e651e58d993986cd7b0016f (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{% comment %}

  buildhistory-web - base template for output pages

  Copyright (C) 2016 Intel Corporation
  Licensed under the MIT license, see COPYING.MIT for details

{% endcomment %}


{% load i18n %}
{% load staticfiles %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{% static "css/bootstrap.css" %}" />
    <link rel="stylesheet" href="{% static "css/bootstrap-theme.css" %}" />
    <link rel="stylesheet" href="{% static "css/additional.css" %}" />
    <title>Buildhistory{% block title_append %}{% endblock %}</title>
</head>

<body>
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand" href="{% url 'warning_list' %}">
                Buildhistory
                </a>
            </div>
            <div class="container">
        {% block header %}
                <ul class="nav navbar-nav">
                    <li {% if not reviewed %}class="active"{% endif %}><a href="{% url "warning_list" %}">{% trans "queue" %}</a></li>
                    <li {% if reviewed %}class="active"{% endif %}><a href="{% url "warning_list_reviewed" %}">{% trans "reviewed" %}</a></li>
                </ul>
                {% if user.is_authenticated %}
                <div class="btn-group pull-right">
                    <button class="btn btn-default navbar-btn dropdown-toggle" data-toggle="dropdown"">
                        <i class="glyphicon glyphicon-user"></i>
                        {{ user.username }}
                        <b class="caret"></b>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="{% url "auth_logout" %}">{% trans "Log out" %}</a></li>
                        <li><a href="{% url "auth_password_change" %}">{% trans "Change password" %}</a></li>
                    </ul>
                </div>
                {% else %}
                <div class="pull-right">
                    <a class="btn btn-default navbar-btn" href="{% url 'auth_login' %}">{% trans "Log in" %}</a>
                </div>
                {% endif %}
        {% endblock %}
            </div>
        </div>
    </nav>

    <div id="content" class="container top-padded">
        {% block content %}{% endblock %}
    </div>

    <div id="footer">
        {% block footer %}
        <hr />
        {% endblock %}
    </div>

    <script src="{% static "js/jquery-1.12.3.js" %}"></script>
    <script src="{% static "js/bootstrap.js" %}"></script>
{% block scripts %}
{% endblock %}

</body>
</html>