base.html 3.37 KB
<!doctype html>

{% load static %}

<html lang="pl">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>{% block title %}{% endblock %} – ShellValier</title>
    <link rel="icon" href="/static/common/favicon.ico">
    <link rel="stylesheet" type="text/css" href="https://bootswatch.com/4/lux/bootstrap.min.css">
    {% block styles %}{% endblock %}
    <link rel="stylesheet" type="text/css" href="{% static 'common/css/common.css' %}">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <!--might be needed for resizeable panels, causes errors if included after Popper-->
    <!--script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script-->
    <!--Bootstrap’s tooltips require Popper-->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
    {% block scripts %}{% endblock %}
</head>

<body>
<div class="container-fluid h-100 d-flex flex-column">
    
    <nav class="navbar navbar-expand-lg sticky-top navbar-dark bg-dark font-weight-bold">
        <a class="navbar-brand" href="/">ShellValier</a>

        <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 mr-auto">
                <li class="nav-item" id="nav-entries">
                    <a class="nav-link" href="{% url 'entries:entries' %}">
                    Hasła
                    </a>
                </li>
                <li class="nav-item" id="nav-phrases">
                    <a class="nav-link" href="{% url 'phrase_expansions:phrase_expansions' %}">
                    Typy fraz
                    </a>
                </li>
                <li class="nav-item" id="nav-stats">
                    <a class="nav-link" href="{% url 'dictionary_statistics:dictionary_statistics' %}">
                    Statystyki
                    </a>
                </li>
                <li class="nav-item" id="nav-download">
                    <a class="nav-link" href="{% url 'download:download' %}">
                    Pobierz słownik
                    </a>
                </li>
                <li class="nav-item" id="nav-test">
                    <a class="nav-link" href="{% url 'entries:test' %}">
                    [[ TEST ]]
                    </a>
                </li>
                <li class="nav-item" id="nav-admin">
                    <a class="nav-link" href="/admin/">
                    [[ Admin ]]
                    </a>
                </li>
            </ul>
        </div>
    </nav>
    
    <main class="container-fluid flex-grow-1 overflow-auto" role="main">
        {% block content %}{% endblock %}
    </main>
    
    <div class="fixed-bottom bg-warning text-dark" id="debug"></div>

</div>
</body>

</html>