1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00
acronomy/templates/base.html

52 lines
1.7 KiB
HTML

{% load bootstrap4 %}
{% 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 -->
{% if debug %}
<link rel="stylesheet" href="{% url "css" %}">
{% else %}
<link rel="stylesheet" href="{% static "css/main.css" %}">
{% endif %}
{% block extra_head %}
{% endblock %}
</head>
<body>
{# <div class="container {{ referrers is defined ? "edit" }}">#}
<div class="container {% block containerclasses %}{% endblock %}">
{% bootstrap_messages %}
{% if user.is_authenticated %}
<div class="accountStatus">
Hello {{ user.get_username }}, <a href="{% url 'logout' %}">Log out</a>
</div>
{% else %}
<div class="accountStatus">
<a href="{% url 'login' %}">Log in</a>
</div>
{% endif %}
{% block heading %}
{% endblock %}
<div id="autocomplete" class="autocomplete">
<input placeholder="Search for an acronym"
class="autocomplete-input" {% block searchInput %}{% endblock %}/>
<ul class="autocomplete-result-list"></ul>
</div>
{% block content %}
{% endblock %}
</div>
<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>
<script src="{% static "app.js" %}"></script>
</body>
</html>