Meilleur navbar
This commit is contained in:
parent
f111f145b0
commit
561f180eb3
1 changed files with 13 additions and 11 deletions
|
@ -37,7 +37,7 @@
|
|||
|
||||
<body>
|
||||
<nav class="level has-background-primary">
|
||||
<div class="level-left pl-4">
|
||||
<div class="level-left px-4">
|
||||
<div class="level-item">
|
||||
<a href="{% url "kadenios" %}">
|
||||
<h1 class="has-text-primary-light is-size-1 is-family-secondary">Kadenios</h1>
|
||||
|
@ -46,22 +46,24 @@
|
|||
</div>
|
||||
|
||||
{% block auth %}
|
||||
<div class="level-right pr-5">
|
||||
<div class="level-right px-5">
|
||||
{% if user.is_authenticated %}
|
||||
<div class="level-item mr-5">
|
||||
<div class="tag">
|
||||
{% blocktrans with name=user.get_username connection=user.connection_method %}Connecté·e en tant que {{ name }} par {{ connection }}{% endblocktrans %}
|
||||
<div class="level is-mobile">
|
||||
<div class="level-item mr-5">
|
||||
<div class="tag">
|
||||
{% blocktrans with name=user.get_username connection=user.connection_method %}Connecté·e en tant que {{ name }} par {{ connection }}{% endblocktrans %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="level-item ml-3">
|
||||
<a class="icon is-size-1 has-text-white" href="{% url 'authens:logout' %}?next={% if view.get_next_url %}{{ view.get_next_url }}{% else %}/{% endif %}">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
</a>
|
||||
<div class="level-item ml-3 py-4">
|
||||
<a class="icon is-size-1 has-text-white" href="{% url 'authens:logout' %}?next={% if view.get_next_url %}{{ view.get_next_url }}{% else %}/{% endif %}">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
|
||||
<div class="level-item">
|
||||
<div class="level-item py-2">
|
||||
<a class="tag has-text-primary is-size-5" href="{% url 'authens:login' %}?next={{ request.path }}">
|
||||
<span>{% trans "Se connecter" %}</span>
|
||||
<span class="icon">
|
||||
|
|
Loading…
Reference in a new issue