2020-06-02 18:05:58 +02:00
|
|
|
{% load bootstrap4 %}
|
2020-06-01 11:03:21 +02:00
|
|
|
{% load static %}
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
|
|
|
<title>{% block title %}Acronomy{% endblock %}</title>
|
|
|
|
|
|
|
|
<!-- Bootstrap -->
|
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 %}
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-07-08 15:57:25 +02:00
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
|
|
<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">
|
|
|
|
{% block admin_navbar %}
|
|
|
|
{% endblock %}
|
|
|
|
</ul>
|
|
|
|
</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/jquery.slim.min.js" %}"></script>
|
|
|
|
<script src="{% static "libs/popper.min.js" %}"></script>
|
|
|
|
<script src="{% static "libs/bootstrap.min.js" %}"></script>
|
|
|
|
<script src="{% static "libs/tagify.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>
|