logout verhalten verbessert
This commit is contained in:
@@ -22,6 +22,8 @@
|
|||||||
.log .level-warning { color: #d97706; }
|
.log .level-warning { color: #d97706; }
|
||||||
form p { margin: 0.75rem 0; }
|
form p { margin: 0.75rem 0; }
|
||||||
label { display: block; font-weight: 600; }
|
label { display: block; font-weight: 600; }
|
||||||
|
.btn-link { background: none; border: none; padding: 0; color: #0366d6; cursor: pointer; font: inherit; text-decoration: none; }
|
||||||
|
.btn-link:hover { text-decoration: underline; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@@ -31,7 +33,11 @@
|
|||||||
<a href="{% url 'job-create' %}">Neuer Serienbrief</a>
|
<a href="{% url 'job-create' %}">Neuer Serienbrief</a>
|
||||||
<span style="margin-left:auto">
|
<span style="margin-left:auto">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
{{ user.username }} · <a href="{% url 'logout' %}">Abmelden</a>
|
{{ user.username }} ·
|
||||||
|
<form method="post" action="{% url 'logout' %}" style="display:inline">
|
||||||
|
{% csrf_token %}
|
||||||
|
<button type="submit" class="btn-link">Abmelden</button>
|
||||||
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user