File size: 1,560 Bytes
e50f22e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!-- templates/base.html -->
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}ML App{% endblock %}</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <style>
        body {
            background: #f5f8ff;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        }
        {% block extra_styles %}{% endblock %}
    </style>
</head>
<body>
    {% block fullpage %}
        {% if user.is_authenticated %}
        <nav class="navbar navbar-light bg-white border-bottom px-4 py-2">
            <a class="navbar-brand fw-bold" href="{% url 'landing_page' %}">Model Lab</a>
            <span class="ms-auto">
                Logged in as: <strong>{{ user.username }}</strong>
                <a href="{% url 'logout' %}" class="btn btn-sm btn-outline-danger ms-2">Logout</a>
            </span>
        </nav>
        {% endif %}

        <div class="container py-4">
            {% block content %}{% endblock %}
        </div>
    {% endblock %}

    <!-- hot-reload (for dev) -->
    <script src="{% static 'django_browser_reload/reload.js' %}"></script>

    <!-- Bootstrap JS (needed for modals, dropdowns, etc.) -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>