2020-06-01 11:03:21 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
2020-07-20 15:54:36 +02:00
|
|
|
{% load bootstrap4 %}
|
|
|
|
{% load static %}
|
2020-06-01 11:03:21 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<title>{% block title %}Acronomy{% endblock %}</title>
|
2020-07-27 14:18:47 +02:00
|
|
|
<link rel="icon" href="{% static "images/logo.png" %}" sizes="1024x1024">
|
|
|
|
<link rel="icon" href="{% static "images/logo.svg" %}" sizes="any" type="image/svg+xml">
|
2020-06-13 21:18:58 +02:00
|
|
|
{% if debug %}
|
|
|
|
<link rel="stylesheet" href="{% url "css" %}">
|
|
|
|
{% else %}
|
|
|
|
<link rel="stylesheet" href="{% static "css/main.css" %}">
|
|
|
|
{% endif %}
|
2020-06-01 11:03:21 +02:00
|
|
|
{% block extra_head %}
|
|
|
|
{% endblock %}
|
2020-07-20 15:54:36 +02:00
|
|
|
{% if not debug %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
var _paq = window._paq = window._paq || [];
|
|
|
|
_paq.push(['disableCookies']);
|
|
|
|
_paq.push(['setRequestMethod', 'POST']);
|
|
|
|
_paq.push(["setDoNotTrack", true]);
|
|
|
|
_paq.push(['trackPageView']);
|
|
|
|
_paq.push(['enableLinkTracking']);
|
|
|
|
(function () {
|
|
|
|
var u = "https://matomo.lw1.at/";
|
|
|
|
_paq.push(['setTrackerUrl', u + 'statistics.php']);
|
|
|
|
_paq.push(['setSiteId', '29']);
|
|
|
|
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
|
|
|
|
g.type = 'text/javascript';
|
|
|
|
g.async = true;
|
|
|
|
g.src = u + 'statistics.js';
|
|
|
|
s.parentNode.insertBefore(g, s);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
2020-06-01 11:03:21 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2020-07-08 15:57:25 +02:00
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
2020-07-22 14:30:34 +02:00
|
|
|
<div class="container-fluid">
|
|
|
|
{% if user.is_staff %}
|
|
|
|
<a class="navbar-brand" href="{% url 'admin:index' %}">Admin</a>
|
|
|
|
{% endif %}
|
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
|
|
|
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<a class="nav-item nav-link" href="{% url 'add' %}">Add</a>
|
|
|
|
{% block admin_navbar %}
|
|
|
|
{% endblock %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-07-08 15:57:25 +02:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|
|
|
|
|
2020-06-01 11:03:21 +02:00
|
|
|
{# <div class="container {{ referrers is defined ? "edit" }}">#}
|
|
|
|
<div class="container {% block containerclasses %}{% endblock %}">
|
2020-06-02 18:05:58 +02:00
|
|
|
{% bootstrap_messages %}
|
2020-06-08 20:33:29 +02:00
|
|
|
{% block heading %}
|
|
|
|
{% endblock %}
|
2020-06-01 11:03:21 +02:00
|
|
|
<div id="autocomplete" class="autocomplete">
|
2020-06-13 21:18:58 +02:00
|
|
|
<input placeholder="Search for an acronym"
|
|
|
|
class="autocomplete-input" {% block searchInput %}{% endblock %}/>
|
2020-06-01 11:03:21 +02:00
|
|
|
<ul class="autocomplete-result-list"></ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
2020-06-15 19:40:55 +02:00
|
|
|
|
2020-06-01 11:03:21 +02:00
|
|
|
</div>
|
2020-06-15 19:40:55 +02:00
|
|
|
{% include 'footer.html' %}
|
2020-06-02 20:10:37 +02:00
|
|
|
<script src="{% static "libs/popper.min.js" %}"></script>
|
|
|
|
<script src="{% static "libs/bootstrap.min.js" %}"></script>
|
|
|
|
<script src="{% static "libs/autocomplete.min.js" %}"></script>
|
2020-06-01 11:03:21 +02:00
|
|
|
<script src="{% static "app.js" %}"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|