chore: improve navbar style

This commit is contained in:
Luca 2024-11-10 01:35:36 +01:00
parent 41e66b0962
commit db45e163a9
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{% load django_bootstrap5 %}
{% load i18n %}
<nav class="navbar navbar-expand-md bg-primary" role="navigation" data-bs-theme="dark">
<div class="container-fluid">
<nav class="navbar navbar-expand-md sticky-top bg-primary mb-3" role="navigation" data-bs-theme="dark">
<div class="container-fluid" data-bs-theme="light">
<a class="navbar-brand" href="{% url 'index' %}">lelcsc</a>
<button class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="true" aria-label="{% translate "Toggle navigation" %}">
<span class="navbar-toggler-icon"></span>
@ -17,7 +17,7 @@
{% endfor %}
</ul>
{% if request.user.is_authenticated %}
<form action="{% url 'oidc_logout' %}" method="post">
<form action="{% url 'oidc_logout' %}" class="d-flex justify-content-end" method="post">
{% csrf_token %}
{% translate "Log out" as logout_button_text %}
{% bootstrap_button button_type="submit" content=logout_button_text %}