summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/base.html
blob: 3f55555450df81a214d1180d0639e01994635437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
    {% block head %}
    <script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" />
    <script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js') }}"></script>
    <title>{% block title %}{% endblock %} - OpenGnsys</title>
    {% endblock %}
</head>
<body>
    {% include 'nav.html' %}
    {% block nav %}{% endblock %}
    {% block flash %}
    {% for category, message in get_flashed_messages(with_categories=True) %}
        {% if category == 'info' %}
            <div class="alert alert-info alert-dismissible fade show m-1" role="alert">
        {% elif category == 'error' %}
            <div class="alert alert-danger alert-dismissible fade show m-1" role="alert">
        {% else %}
            <div class="alert alert-warning alert-dismissible fade show m-1" role="alert">
        {% endif %}
            {{ message }}
            <button type="button" class="close" data-dismiss="alert" aria-label="{{ _('Close') }}">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
    {% endfor %}
    {% endblock %}

    <div id="content">{% block content %}{% endblock %}</div>

    {% block footer %}
    <footer class="footer navbar-inverse bg-dark" role="contentinfo">
        <div class="text-center text-secondary my-2 p-3">
            Powered by
            <a class="text-light" href="https://opengnsys.soleta.eu/">Soleta Networks</a>
        </div>
    </footer>
    {% endblock %}
</body>
</html>