mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
93 lines
3.6 KiB
HTML
93 lines
3.6 KiB
HTML
{% load static %}
|
|
|
|
<!DOCTYPE html>
|
|
<html
|
|
dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
|
|
xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
|
|
lang="{% firstof LANGUAGE_CODE 'en' %}">
|
|
<head>
|
|
<title>{% block title %}{{page_title|striptags}}{% endblock %} | Rig Information Gathering System</title>
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="theme-color" content="#3853a4">
|
|
<meta name="color-scheme" content="light dark">
|
|
|
|
<link rel="icon" type="image/png" href="{% static 'imgs/pyrigs-avatar.png' %}">
|
|
<link rel="apple-touch-icon" href="{% static 'imgs/pyrigs-avatar.png' %}">
|
|
<link href="{% static 'fonts/OpenSans-Regular.tff' %}">
|
|
|
|
<link rel="stylesheet" type="text/css" href="{% static 'css/dark_screen.css' %}" {% if not request.user.dark_theme %}media="(prefers-color-scheme: dark)"{% endif %}>
|
|
<link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}">
|
|
{% block css %}
|
|
{% endblock %}
|
|
|
|
<script src="{% static 'js/jquery.js' %}"></script>
|
|
<script src="{% static 'js/popper.js' %}"></script>
|
|
{% block preload_js %}
|
|
{% endblock %}
|
|
|
|
{% block extra-head %}{% endblock %}
|
|
</head>
|
|
|
|
<body>
|
|
<a class="skip-link" href='#main'>Skip to content</a>
|
|
{% include "analytics.html" %}
|
|
{% block navbar %}
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark flex-nowrap" role="navigation">
|
|
<a class="navbar-brand" href="{% if request.user.is_authenticated %}https://members.nottinghamtec.co.uk{%else%}https://nottinghamtec.co.uk{%endif%}">
|
|
<img src="{% static 'imgs/logo.png' %}" width="40" height="40" alt="TEC's Logo: Serif 'TEC' vertically next to a blue box with the words 'PA and Lighting', surrounded by graduated rings">
|
|
</a>
|
|
<div class="container">
|
|
{% block titleheader %}
|
|
{% endblock %}
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav">
|
|
{% block titleelements %}
|
|
{% endblock %}
|
|
</ul>
|
|
<ul class="navbar-nav ml-auto">
|
|
{% block titleelements_right %}
|
|
{% endblock %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
{% endblock %}
|
|
<div class="container py-4" id="main">
|
|
{% block content-header %}
|
|
{% if error %}
|
|
<div class="error">{{ error }}</div>{% endif %}
|
|
{% if info %}
|
|
<div class="info">{{ info }}</div>{% endif %}
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="alert alert-{{ message.level_tag }} alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
|
|
aria-hidden="true">×</span></button>
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% if page_title and not request.is_ajax %}
|
|
<h2>{{page_title|safe}}</h2>
|
|
{% endif %}
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<div class="modal fade" id="modal" role="dialog" tabindex=-1></div>
|
|
<script>
|
|
if({{ request.user.dark_theme|lower }} || window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
document.body.setAttribute('data-theme', 'dark');
|
|
}
|
|
</script>
|
|
<script src="{% static 'js/base.js' %}"></script>
|
|
{% block js %}
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|