From f3c87deb32418b3042a4a976608f7bc6b7686c04 Mon Sep 17 00:00:00 2001 From: Andrea Zucchelli Date: Sun, 13 Oct 2024 23:47:36 +0200 Subject: [PATCH] chore: refresh button --- templates/base.html | 13 +++++++++---- .../templates/connection_list.html | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/templates/base.html b/templates/base.html index 3e4723f..fefa9e8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,14 +18,19 @@ {% block header %} {% endblock header %} -
- {% if user.is_authenticated %} + {% if user.is_authenticated %} + {% if user.is_superuser %} +
+ Refresh connections +
+ {% endif %} +
{% csrf_token %}
- {% endif %} -
+
+ {% endif %}
{% block content %}{% endblock %} diff --git a/wg_connection_manager/templates/connection_list.html b/wg_connection_manager/templates/connection_list.html index e55bc89..42b7d6f 100644 --- a/wg_connection_manager/templates/connection_list.html +++ b/wg_connection_manager/templates/connection_list.html @@ -2,7 +2,7 @@ {% block title %}WG-Manager Connection List{% endblock %} {% block header %}
-

Connessioni per {{ user }}

+

Connections for {{ user }}

{% endblock header %} {% block content %}