2020-04-29 18:48:23 +02:00
|
|
|
{% load static %}
|
2020-04-26 04:46:44 +02:00
|
|
|
{% load bootstrap4 %}
|
|
|
|
{% load font_awesome %}
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
2020-04-29 18:48:23 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2020-04-26 04:46:44 +02:00
|
|
|
|
|
|
|
<title>{% block 'title' %}portier{% endblock %}</title>
|
|
|
|
{% bootstrap_css %}
|
|
|
|
{% fa_css %}
|
|
|
|
{% bootstrap_javascript jquery='full' %}
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2020-04-29 18:48:23 +02:00
|
|
|
<header>
|
|
|
|
<nav class="navbar navbar-expand-md navbar-light bg-light mb-4 border boder-bottom-0">
|
|
|
|
<span class="navbar-brand mb-0 h1">
|
|
|
|
<a href="{% url 'index' %}">Portier</a>
|
|
|
|
</span>
|
|
|
|
<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">
|
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
Configuration
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
|
|
|
|
<a class="dropdown-item" href="#">Something else here</a>
|
|
|
|
<div class="dropdown-divider"></div>
|
|
|
|
<h6 class="dropdown-header">Streaming</h6>
|
|
|
|
<a class="dropdown-item" href="{% url 'rtmp:stream_list' %}">Streams</a>
|
|
|
|
<a class="dropdown-item" href="#">Restream</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
<li class="nav-item">
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<a class="nav-link logout" href="{% url 'logout' %}?next={% url 'index' %}">Logout</a>
|
|
|
|
{% else %}
|
|
|
|
<a class="nav-link login" href="{% url 'login' %}?next={% url 'index' %}">Login</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
|
|
|
<main class="container" roles="main">
|
|
|
|
{% block 'content' %}
|
2020-04-26 04:46:44 +02:00
|
|
|
{% endblock %}
|
2020-04-29 18:48:23 +02:00
|
|
|
</main>
|
|
|
|
<footer class="text-muted">
|
|
|
|
<div class="container">
|
|
|
|
</div>
|
|
|
|
</footer>
|
2020-04-26 04:46:44 +02:00
|
|
|
</body>
|
|
|
|
</html>
|