chore: refresh button

This commit is contained in:
zuk 2024-10-13 23:47:36 +02:00
parent e7c831e0c2
commit f3c87deb32
2 changed files with 10 additions and 5 deletions

View file

@ -18,14 +18,19 @@
{% block header %}
{% endblock header %}
</div>
<div style="margin-right:1em">
{% if user.is_authenticated %}
{% if user.is_authenticated %}
{% if user.is_superuser %}
<div style="margin-right:1em">
<a class="button" href="{% url 'sync' %}">Refresh connections</a>
</div>
{% endif %}
<div style="margin-right:1em">
<form action="{% url 'logout' %}" method="post">
{% csrf_token %}
<button type="submit">Log Out</button>
</form>
{% endif %}
</div>
</div>
{% endif %}
</header>
<main>
{% block content %}{% endblock %}

View file

@ -2,7 +2,7 @@
{% block title %}WG-Manager Connection List{% endblock %}
{% block header %}
<div style="display:flex;justify-content:center;width:100%">
<h1>Connessioni per {{ user }}</h1>
<h1>Connections for {{ user }}</h1>
</div>
{% endblock header %}
{% block content %}