File size: 1,747 Bytes
a6db6a6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
43
44
45
46
47
48
49
50
<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>{% block title %}Grimvault{% endblock %}</title>
        <link
            rel="stylesheet"
            href="{{ url_for('static', filename='css/styles.css') }}"
        />
        <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    </head>
    <body>
        <header>
            <nav>
                <ul>
                    <li><a href="{{ url_for('main.index') }}">Grimvault</a></li>
                    {% if current_user.is_authenticated %} {% if
                    current_user.is_admin %}
                    <li>
                        <a href="{{ url_for('admin.admin_dashboard') }}"
                            >Admin Dashboard</a
                        >
                    </li>
                    {% else %}
                    <li>
                        <a href="{{ url_for('files.dashboard') }}">Dashboard</a>
                    </li>
                    {% endif %} {% else %}
                    <li><a href="{{ url_for('auth.login') }}">Login</a></li>
                    <li>
                        <a href="{{ url_for('auth.register') }}">Register</a>
                    </li>
                    {% endif %}
                </ul>
            </nav>
        </header>

        <main>
            <div id="loading-indicator" class="loading" style="display: none">
                Loading...
            </div>
            {% block content %}{% endblock %}
        </main>

        <script src="{{ url_for('static', filename='js/main.js') }}"></script>
        {% block scripts %}{% endblock %}
    </body>
</html>