feat(meta): add admin badge to admin section

This commit is contained in:
Christoph J. Scherr 2024-09-11 21:13:46 +02:00
parent 99a01d07fa
commit 3204047b28
2 changed files with 15 additions and 6 deletions

View File

@ -1,5 +1,10 @@
{% extends "base" %} {% extends "base" %}
{% block title %}{{ title }}{% endblock %} {% block title %}{{ title }}{% endblock %}
{% block header_ext %}
<div class="col-12 col-mx-auto col-me-0 text-center justify-content-center">
<span class="badge text-bg-warning rounded-pill">Admin</span>
</div>
{% endblock %}
{% block main %} {% block main %}
<h1 class="text-body-emphasis">{{title}}</h1> <h1 class="text-body-emphasis">{{title}}</h1>
<p class="fs-5 col-md-8"> <p class="fs-5 col-md-8">

View File

@ -171,12 +171,16 @@
<!-- basically everything but with some margin --> <!-- basically everything but with some margin -->
<div class="col-lg-8 mx-auto p-4 py-md-5"> <div class="col-lg-8 mx-auto p-4 py-md-5">
<header class="d-flex align-items-center pb-3 mb-5 border-bottom"> <header class="d-flex align-items-center pb-3 mb-5 border-bottom">
<div class="col-md-3 col-12 col-md-auto">
<a href="/" class="d-flex align-items-center text-body-emphasis text-decoration-none"> <a href="/" class="d-flex align-items-center text-body-emphasis text-decoration-none">
<svg class="bi me-2" width="40" height="32"> <svg class="bi me-2" width="40" height="32">
<use xlink:href="#vault" /> <use xlink:href="#vault" />
</svg> </svg>
<span class="fs-4">{{app_name}}</span> <span class="fs-4">{{app_name}}</span>
</a> </a>
</div>
{% block header_ext %}{% endblock %}
</header> </header>
<main> <main>