neptune/core/templates/base.html

61 lines
2.6 KiB
HTML
Raw Normal View History

2022-07-21 12:46:05 +00:00
{% load static %}
2022-07-21 12:48:39 +00:00
{% load has_plan %}
2022-07-21 12:45:28 +00:00
<!DOCTYPE html>
2022-07-21 12:46:05 +00:00
<html lang="en-GB">
<head>
2022-07-21 12:45:28 +00:00
<meta charset="utf-8">
2022-07-21 12:47:42 +00:00
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2022-07-21 12:45:28 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-07-21 12:45:57 +00:00
<title>Pathogen - {{ request.path_info }}</title>
2022-07-21 12:47:31 +00:00
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
2022-07-21 12:45:28 +00:00
<link rel="stylesheet" href="{% static 'style.css' %}" />
2022-07-21 12:46:05 +00:00
</head>
<body>
2022-07-21 12:45:28 +00:00
<section class="hero is-primary is-fullheight">
2022-07-21 12:46:05 +00:00
<div class="hero-head">
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="{% url 'home' %}">Pathogen</a>
2022-07-21 12:47:31 +00:00
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#base-nav" aria-expanded="false">
2022-07-21 12:46:05 +00:00
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
2022-07-21 12:45:28 +00:00
</div>
2022-07-21 12:47:31 +00:00
<div class="collapse navbar-collapse" id="base-nav">
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
2022-07-21 12:47:45 +00:00
<li><a href="{% url 'billing' %}">Billing</a></li>
2022-07-21 12:47:31 +00:00
{% endif %}
2022-07-21 12:48:39 +00:00
{% if user|has_plan:'drilldown' %}
2022-07-21 12:47:31 +00:00
<li><a href="{% url 'drilldown' %}">Drilldown</a></li>
{% endif %}
{% if not user.is_authenticated %}
<li><a href="{% url 'login' %}">Login</a></li>
<li><a href="{% url 'signup' %}">Sign Up</a></li>
{% endif %}
{% if user.is_authenticated %}
<li><a href="{% url 'logout' %}">Logout</a></li>
{% endif %}
</ul>
</div>
2022-07-21 12:46:05 +00:00
</div>
</nav>
</div>
<div class="hero-body">
<div class="container has-text-centered">
{% block content %}
{% endblock %}
2022-07-21 12:45:28 +00:00
</div>
2022-07-21 12:46:05 +00:00
</div>
2022-07-21 12:45:28 +00:00
</section>
2022-07-21 12:46:05 +00:00
</body>
2022-07-21 12:45:28 +00:00
</html>