summaryrefslogtreecommitdiffstats
path: root/templates/master-admin.html
blob: c058360965700ad76fb6b1f231ec9c49b3727029 (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
<!DOCTYPE html>
<!--[if IE 8]><html class="ie8"><![endif]-->
<!--[if gt IE 8]><!--><html><!--<![endif]-->
  <head>
    <title>{{ title }}</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="{{ basepath }}/ui/css/admin.css" rel="stylesheet" media="screen, print">
    <script src="{{ basepath }}/ui/js/jquery.js"></script>
    <script src="{{ basepath }}/ui/js/bootstrap.js"></script>
    <script src="{{ basepath }}/ui/js/patternfly.js"></script>
    {% if newurl %}
    <script>
        $( document ).ready(
            function() {
                history.replaceState({} , document.title, "{{ newurl }}");
            }
        );
        $( document ).tooltip();
    </script>
    {% endif %}
  </head>
  <body>
    <nav class="navbar navbar-default navbar-pf" role="navigation">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{{ basepath }}">
          <img src="{{ basepath }}/ui/img/brand.png" alt="Ipsilon" />
        </a>
      </div>
      <div class="collapse navbar-collapse navbar-collapse-1">
        <ul class="nav navbar-nav navbar-utility">
          <!-- <li>
            <a href="#">Status</a>
          </li> -->
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <span class="pficon pficon-user"></span>
              {{ user.fullname }} <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <li>
                <a href="{{ basepath }}/logout" id="logout">Log Out</a>
              </li>
            </ul>
          </li>
        </ul>
        <ul class="nav navbar-nav navbar-primary">
          {% for page in menu %}
          <li>
            <a href="{{ page.url }}">{{ page.title }}</a>
          </li>
          {% endfor %}
        </ul>
      </div>
    </nav>

    <div class="container">
      {% block main %}
      {% endblock %}
    </div>
  </body>
</html>