96 lines
3.1 KiB
HTML
96 lines
3.1 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
|
||
<head>
|
||
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
<meta name="description" content="">
|
||
<meta name="author" content="Kumi Systems e.U.">
|
||
|
||
<title>{% if title %}{{ title }} – {% endif %}Remote VR</title>
|
||
|
||
{% load static %}
|
||
{% load repo %}
|
||
{% load userstatus %}
|
||
{% setUser as user %}
|
||
{% autoescape off %}
|
||
{% updateUserStatus user %}
|
||
{% endautoescape %}
|
||
{% block header %}
|
||
{% endblock %}
|
||
|
||
<link href="/bs/dist/css/bootstrap.min.css" rel="stylesheet">
|
||
<link rel="stylesheet" href="/fa/css/all.css">
|
||
<link rel="stylesheet" href="/css/style.css">
|
||
<script src="/jq/dist/jquery.min.js"></script>
|
||
<script src="/bs/dist/js/bootstrap.bundle.min.js"></script>
|
||
|
||
<link rel="icon" type="image/png" href="/img/favicon.png" />
|
||
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark static-top">
|
||
<div class="container">
|
||
<a class="navbar-brand" href="/">Remote VR</a>
|
||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||
<span class="navbar-toggler-icon"></span>
|
||
</button>
|
||
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||
<ul class="navbar-nav ml-auto">
|
||
{% if user.is_authenticated %}
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{% url 'devices' %}">Devices</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{% url 'wifi' %}">WiFi</a>
|
||
</li>
|
||
{% if user.is_staff %}
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{% url 'users' %}">Users</a>
|
||
</li>
|
||
{% endif %}
|
||
{% if user.is_superuser %}
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{% url 'networks' %}">Networks</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{% url 'organizations' %}">Organizations</a>
|
||
</li>
|
||
{% endif %}
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{% url 'logout' %}">Logout</a>
|
||
</li>
|
||
{% else %}
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="{% url 'two_factor:login' %}">Login</a>
|
||
</li>
|
||
{% endif %}
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<div class="container">
|
||
<div class="row">
|
||
<div class="col-lg-12">
|
||
<br/>
|
||
<h1>{{ title }}</h1>
|
||
{% block content %}
|
||
{% endblock %}
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<footer class="footer">
|
||
<div class="container">
|
||
<span class="text-muted">© <a style="color: rgb(108, 117, 125);" href="https://kumi.systems/">Kumi Systems e.U.</a>{% if user.is_superuser %}<br/>Git Revision: {% getCommit %}{% isLatestCommit %}{% isDirty %}{% elif user.is_authenticated %}<br/><b>Support:</b> <a href="mailto:support@kumi.systems">support@kumi.systems</a>{% endif %}</span>
|
||
</div>
|
||
</footer>
|
||
|
||
</body>
|
||
|
||
</html>
|