mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Logout link in nav, refs #875
This commit is contained in:
parent
51427323e6
commit
2115d7e345
7 changed files with 73 additions and 2 deletions
|
|
@ -14,7 +14,17 @@
|
|||
</head>
|
||||
<body class="{% block body_class %}{% endblock %}">
|
||||
|
||||
<nav class="hd">{% block nav %}{% endblock %}</nav>
|
||||
<nav class="hd">{% block nav %}
|
||||
{% if actor %}
|
||||
<div class="logout">
|
||||
<strong>{{ display_actor(actor) }}</strong> ·
|
||||
<form action="/-/logout" method="post">
|
||||
<input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
|
||||
<button class="button-as-link">Log out</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}</nav>
|
||||
|
||||
<div class="bd">
|
||||
{% block messages %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue