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">
|
|
|
|
<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:50:20 +00:00
|
|
|
<link rel="shortcut icon" href="{% static 'favicon.ico' %}">
|
2022-07-21 12:49:01 +00:00
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
|
|
|
|
<link rel="stylesheet" href="https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css" />
|
|
|
|
<script>
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
2022-07-21 12:47:31 +00:00
|
|
|
|
2022-07-21 12:49:01 +00:00
|
|
|
// Get all "navbar-burger" elements
|
|
|
|
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
|
|
|
|
|
|
|
// Add a click event on each of them
|
|
|
|
$navbarBurgers.forEach( el => {
|
|
|
|
el.addEventListener('click', () => {
|
|
|
|
|
|
|
|
// Get the target from the "data-target" attribute
|
|
|
|
const target = el.dataset.target;
|
|
|
|
const $target = document.getElementById(target);
|
|
|
|
|
|
|
|
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
|
|
|
|
el.classList.toggle('is-active');
|
|
|
|
$target.classList.toggle('is-active');
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
</script>
|
2022-07-21 12:46:05 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-07-21 12:49:01 +00:00
|
|
|
|
|
|
|
<nav class="navbar" role="navigation" aria-label="main navigation">
|
|
|
|
<div class="navbar-brand">
|
|
|
|
<a class="navbar-item" href="{% url 'home' %}">
|
|
|
|
<img src="{% static 'logo.svg' %}" width="112" height="28" alt="logo">
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="bar">
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="bar" class="navbar-menu">
|
|
|
|
<div class="navbar-start">
|
|
|
|
<a class="navbar-item" href="{% url 'home' %}">
|
|
|
|
Home
|
|
|
|
</a>
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<a class="navbar-item" href="{% url 'billing' %}">
|
|
|
|
Billing
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<div class="navbar-item has-dropdown is-hoverable">
|
|
|
|
<a class="navbar-link">
|
|
|
|
Plans
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="navbar-dropdown">
|
2022-07-21 12:48:39 +00:00
|
|
|
{% if user|has_plan:'drilldown' %}
|
2022-07-21 12:49:01 +00:00
|
|
|
<a class="navbar-item" href="{% url 'drilldown' %}">
|
|
|
|
Drilldown
|
|
|
|
</a>
|
2022-07-21 12:47:31 +00:00
|
|
|
{% endif %}
|
2022-07-21 12:49:01 +00:00
|
|
|
<hr class="navbar-divider">
|
|
|
|
<a class="navbar-item" href="mailto:help@pathogen.is">
|
|
|
|
Report an issue
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="navbar-end">
|
|
|
|
<div class="navbar-item">
|
|
|
|
<div class="buttons">
|
|
|
|
{% if not user.is_authenticated %}
|
|
|
|
<a class="button is-primary" href="{% url 'signup' %}">
|
|
|
|
<strong>Sign up</strong>
|
|
|
|
</a>
|
|
|
|
<a class="button is-light" href="{% url 'login' %}">
|
|
|
|
Log in
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<a class="button is-dark" href="{% url 'logout' %}">Logout</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
2022-07-21 12:47:31 +00:00
|
|
|
</div>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:45:28 +00:00
|
|
|
</div>
|
2022-07-21 12:46:05 +00:00
|
|
|
</div>
|
2022-07-21 12:49:01 +00:00
|
|
|
</nav>
|
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
|
|
</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>
|