summaryrefslogtreecommitdiffstats
path: root/tools/pharos-dashboard/templates/dashboard/base.html
blob: 544bf0b3296f3cd76154c1ca9ce8af1f157ab5e6 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{% extends "layout/base.html" %}
{% load bootstrap3 %}

{% block basecontent %}
    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation"
             style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse"
                        data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a href="https://www.opnfv.org/" class="navbar-left"><img
                        src="https://www.opnfv.org/sites/all/themes/opnfv/logo.png"></a>
                <a class="navbar-brand" href={% url 'dashboard:' %}>Pharos Dashboard</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        {% if user.is_authenticated %}
                            <li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
                            </li>
                            <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                            </li>
                            <li class="divider"></li>
                            <li><a href="{% url 'dashboard:logout' %}?next={{ request.path }}"><i
                                    class="fa fa-sign-out fa-fw"></i>
                                Logout</a>
                            </li>
                        {% else %}
                            <li><a href="{% url 'dashboard:login' %}"><i
                                class="fa fa-sign-out fa-fw"></i>
                            Login</a>
                        {% endif %}
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li>
                            <a href="{% url 'dashboard:ci_pods' %}"><i
                                    class="fa fa-table fa-fw"></i>CI-Pods</a>
                        </li>
                        <li>
                            <a href="{% url 'dashboard:dev_pods' %}"><i
                                    class="fa fa-table fa-fw"></i>Development
                                Pods</a>
                        </li>
                        <li>
                            <a href="{% url 'dashboard:jenkins_slaves' %}"><i
                                    class="fa fa-table fa-fw"></i>Jenkins
                                Slaves</a>
                        </li>
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">{{ title }}</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>

            {% bootstrap_messages %}

            {% block content %}

            {% endblock content %}
        </div>
        <!-- /#page-wrapper -->
    </div>
    <!-- /#wrapper -->
{% endblock basecontent %}