You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.4 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<!-- Referencing custom CSS stylesheet --!>
<link rel="stylesheet" type="text/css" href="/css/style.css"/>
<!-- Referencing Bootstrap CSS stylesheet --!>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- Referencing Favicon --!>
<link rel="shortcut icon" href="{{ url_for('static', filename='img/logo.png') }}">
{# Title Block : wit Minibase as defauls value : will be overwritten if anothe page has the same title block #}
<title>{% block title %}Minibase{% endblock %}</title>
</head>
{# Here You can see how we use variables in HTML code #}
<body style="{{ theme.maineTheme.div_style}}">
{# We can also include othe html files #}
{% include 'navbar.html' %}
<main>
{# This part will catch anny messages that we want to FLASH when something has been updated #}
{# Gets the messages with their respective categories #}
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %} {# If there are messages present #}
{% for category, message in messages %} {# Get the message and his category #}
<div class="alert alert-{{ category }}">
{{ message }} {# Print it #}
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}
{# Every extra template will be placed here for examplem login.htlm and so on #}
{% endblock %}
</main>
<!-- Incluting the scrips for bootstrap | Bootstrap 5 don't need jquery anymore -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
{% block scripts %}{% endblock %}
</body>
</html>
{# These are Jinja comments and will not be shown if someone was to look at the source code of this page contrary to the HTML comments#}