dnmgmt/templates/base.html

108 lines
4.4 KiB
HTML
Raw Normal View History

2017-02-10 02:45:45 +01:00
<!DOCTYPE html>
<html 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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/favicon.ico">
{% load staticfiles %}
<title>Darknet Resource Management</title>
<!-- Bootstrap core CSS -->
<link href="{% static "css/bootstrap.min.css" %}" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="{% static "style.css" %}" rel="stylesheet">
<link href="{% static "css/bootstrap-tagsinput.css" %}" rel="stylesheet">
2017-02-10 02:45:45 +01:00
<script src="{% static "js/jquery.min.js" %}"></script>
<script src="{% static "js/bootstrap.min.js" %}"></script>
<script src="{% static "js/angular.min.js" %}"></script>
<script src="{% static "js/bootstrap-tagsinput.min.js" %}"></script>
<script src="{% static "js/bootstrap-tagsinput-angular.min.js" %}"></script>
<script src="{% static "js/local.js" %}"></script>
2017-02-10 02:45:45 +01:00
</head>
<body>
<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2017-02-15 02:35:46 +01:00
<a class="navbar-brand" href="{% url 'index' %}">Darknet Mgmt</a>
2017-02-10 02:45:45 +01:00
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
{% if user.is_authenticated %}
2017-02-15 02:35:46 +01:00
<li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "dashboard" %}">Dashboard</a></li>
2017-02-10 02:45:45 +01:00
{% else %}
<li{% if request.resolver_match.url_name == 'index' %} class="active"{%endif%}><a href="{% url "index" %}">Home</a></li>
{% endif %}
2017-02-15 02:35:46 +01:00
<li class="dropdown{% if request.resolver_match.url_name == 'whoisdb' %} active{%endif%}">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Whois DB <span class="caret"></span></a>
<ul class="dropdown-menu">
2017-03-20 00:16:33 +01:00
<li><a href="{% url "whoisdb:dashboard" %}">Whois DB</a></li>
2017-03-15 03:07:43 +01:00
<li><a href="{% url "rrequests:dashboard" %}">Resource Requests</a></li>
2017-03-14 20:18:57 +01:00
<li><a href="{% url "domains:overview" %}">Domains</a></li>
2017-02-15 02:35:46 +01:00
</ul>
</li>
2017-02-10 02:45:45 +01:00
</ul>
<ul class="nav navbar-nav navbar-right">
{% if user.is_staff %}
<li><a href="/admin/">Admin</a></li>
{% endif %}
{% if user.is_authenticated %}
2017-02-15 02:35:46 +01:00
<li><a href="{% url 'user:logout' %}">Logout</a></li>
2017-02-10 02:45:45 +01:00
{% else %}
<li{% if request.resolver_match.url_name == 'register' %} class="active"{%endif%}><a href="{% url "user:register" %}">Register</a></li>
2017-02-15 02:35:46 +01:00
<li{% if request.resolver_match.url_name == 'login' %} class="active"{%endif%}><a href="{% url "user:login" %}">Login</a></li>
2017-02-10 02:45:45 +01:00
{% endif %}
</ul>
{% if user.is_authenticated %}
2017-02-15 02:35:46 +01:00
<p class="navbar-text navbar-right"><a href="{% url "user:profile" %}"><kbd>{{ user.username }}</kbd></a></p>
2017-02-10 02:45:45 +01:00
{% endif %}
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
{% if messages %}
<div class="row">
<div class="col-sm-12">
{% for message in messages %}
<div role="alert" class="alert {% if message.tags %}alert-{{ message.tags }} {% endif %}alert-dismissible"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>{{ message }}<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>
2017-02-10 02:45:45 +01:00
{% endfor %}
</div>
</div>
{% endif %}
{% block content %}{% endblock %}
</div> <!-- /container -->
<footer class="footer">
<div class="container">
<p class="text-muted">Darknet Management interface, noot noot</p>
</div>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
</body>
</html>