mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
48 lines
1.6 KiB
HTML
48 lines
1.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' %}"
|
|
class="embedded">
|
|
<head>
|
|
<base target="_blank" /><!-- Open all links in a new tab, not in the iframe -->
|
|
|
|
<meta name="color-scheme" content="light dark">
|
|
|
|
<link href="{% static 'fonts/OpenSans-Regular.tff' %}">
|
|
|
|
<link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
{% include "analytics.html" %}
|
|
<div class="embed_container">
|
|
<div class="container-fluid">
|
|
{% 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 %}
|
|
<a href="/"><span class="source"> R<small>ig</small> I<small>nformation</small> G<small>athering</small> S<small>ystem</small></span></a>
|
|
{% block content %}
|
|
{% endblock %}
|
|
</div>
|
|
</div>
|
|
<script>
|
|
if({{ request.user.dark_theme|lower }} || window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
$('<link>').appendTo('head').attr({type : 'text/css', rel : 'stylesheet'}).attr('href', '{% static "css/dark_screen.css" %}');
|
|
document.body.setAttribute('data-theme', 'dark');
|
|
}
|
|
</script>
|
|
{% block js %}
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|