aboutsummaryrefslogtreecommitdiff
path: root/rpki/gui/app/templates/base.html
blob: 338f5b64c63f2638c18235d48f2c5646f9e3536d (plain) (blame)
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
{% load app_extras %}

<!DOCTYPE HTML>
<html lang="en">
  <head>
    <meta name='Content-Type' content='text/html; charset=UTF-8'>
    <title>{% block title %}RPKI {% if request.session.handle %}: {{ request.session.handle }}{% endif %}{% endblock %}</title>
    {% block head %}{% endblock %}
    <link rel="stylesheet" href="{{ STATIC_URL }}css/bootstrap.min.css" media="screen">
    <link rel="icon" href="{{ STATIC_URL }}img/sui-riu.ico" type="image/x-icon">
    <link rel="shortcut icon" href="{{ STATIC_URL }}img/sui-riu.ico" type="image/x-icon">
    <style type="text/css">
      body { padding: 40px }
    </style>
  </head>
  <body>

    <!-- TOP BAR -->
    <div class="container">
      <div class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">
	  <a class="brand" href="#">rpki.net {% rpki_version %}</a>
	  <ul class='nav'>
	    <li class="active">
	      <a href="#">Home</a>
	    </li>
	    <li class="divider-vertical"></li>
	  {% if user.is_authenticated %}
	    <li><p class="navbar-text">Logged in as {{ user }}</li>
	    <li class="divider-vertical"></li>
	    <li><a href="{% url "rpki.gui.views.logout" %}">Log Out</a></li>
	  {% endif %}
	  </ul>
	  <ul class="nav pull-right">
	    <li><a href="https://trac.rpki.net/wiki/doc/RPKI/CA/UI/GUI">Help</a></li>
	  </ul>
	</div>
      </div>
    </div><!-- topbar -->

    <div class="container-fluid">
    <!-- MAIN CONTENT -->
      <div class="row-fluid">
	<div class="span2">
	  {% block sidebar %}{% endblock %}
	</div>

	<div class="span10">
	  {% if messages %}
	  {% for message in messages %}
	  {# this will break if there is more than one tag, but don't expect to use that feature #}
	  <div class='alert alert-{{ message.tags }}'>
	    {{ message }}
	  </div>
	  {% endfor %}
	  {% endif %}
	  {% block content %}{% endblock %}
	</div>
    </div>

  </body>
</html>