mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
133 lines
5.0 KiB
HTML
133 lines
5.0 KiB
HTML
{% load static %}
|
|
{% load raven %}
|
|
|
|
<!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 %}{% endblock %} | Rig Information Gathering System</title>
|
|
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<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='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700,300,400' rel='stylesheet'
|
|
type='text/css'>
|
|
|
|
<link rel="stylesheet" type="text/css" href="{% static 'css/screen.css' %}">
|
|
{% block css %}
|
|
{% endblock %}
|
|
|
|
<script src="https://cdn.ravenjs.com/1.3.0/jquery,native/raven.min.js"></script>
|
|
<script>Raven.config('{% sentry_public_dsn %}').install()</script>
|
|
{% block preload_js %}
|
|
{% endblock %}
|
|
|
|
{% block extra-head %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
{% include "analytics.html" %}
|
|
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark" role="navigation">
|
|
{% 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 mr-auto">
|
|
{% block titleelements %}
|
|
{% endblock %}
|
|
<li class="nav-item dropdown align-self-end" id="user">
|
|
{% if user.is_authenticated %}
|
|
<a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
<span class="fas fa-user"></span>
|
|
Hi {{ user.first_name }}
|
|
</a>
|
|
<div class="dropdown-menu" id="userdropdown">
|
|
<div class="col-sm-12 text-right">
|
|
<a href="{% url 'logout' %}" class="dropdown-item btn btn-primary" >Logout</a>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<a class="nav-link" href="{% url 'login' %}">
|
|
<span class="icon-user"></span>
|
|
Login
|
|
</a>
|
|
{% endif %}
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container" style="padding-top: 1rem;">
|
|
{% 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 %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<div class="modal fade" id="modal" role="dialog" tabindex=-1></div>
|
|
|
|
<script src="{% static 'js/jquery.js' %}"></script>
|
|
<script src="{% static 'js/interaction.js' %}"></script>
|
|
<script src="{% static 'js/konami.js' %}"></script>
|
|
<script src="{% static 'js/moment.js' %}"></script>
|
|
<script src="{% static 'js/popper.js' %}"></script>
|
|
<script src="{% static 'js/bootstrap.min.js' %}"></script>
|
|
<script src="{% static 'js/all.js' %}"></script>
|
|
<script>
|
|
Date.prototype.getISOString = function () {
|
|
var yyyy = this.getFullYear().toString();
|
|
var mm = (this.getMonth() + 1).toString(); // getMonth() is zero-based
|
|
var dd = this.getDate().toString();
|
|
return yyyy + '-' + (mm[1] ? mm : "0" + mm[0]) + '-' + (dd[1] ? dd : "0" + dd[0]); // padding
|
|
};
|
|
</script>
|
|
<script>
|
|
jQuery(document).ready(function () {
|
|
jQuery(document).on('click', '.modal-href', function (e) {
|
|
$link = jQuery(this);
|
|
// Anti modal inception
|
|
if ($link.parents('#modal').length == 0) {
|
|
e.preventDefault();
|
|
modaltarget = $link.data('target');
|
|
modalobject = "";
|
|
jQuery('#modal').load($link.attr('href'), function (e) {
|
|
jQuery('#modal').modal();
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
var easter_egg = new Konami();
|
|
easter_egg.code = function () {
|
|
var s = document.createElement('script');
|
|
s.type = 'text/javascript';
|
|
document.body.appendChild(s);
|
|
s.src = '{% static "js/asteroids.min.js"%}';
|
|
ga('send', 'event', 'easter_egg', 'activated');
|
|
}
|
|
easter_egg.load();
|
|
});
|
|
</script>
|
|
{% block js %}
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|