From b49393dbadcd9af5fea511ac67e80ea657189820 Mon Sep 17 00:00:00 2001 From: Anders Bruun Severinsen <202204885@post.au.dk> Date: Thu, 18 Apr 2024 23:12:12 +0200 Subject: [PATCH] Added copy password button to secrets --- fredagscafeen/settings/base.py | 6 +++--- web/templates/secrets_admin.html | 12 +++++++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/fredagscafeen/settings/base.py b/fredagscafeen/settings/base.py index 7eda8bd..e451cec 100644 --- a/fredagscafeen/settings/base.py +++ b/fredagscafeen/settings/base.py @@ -90,7 +90,7 @@ "BEVCO_PASSWORD", "Bevco password", "best@fredagscafeen.dk", - "https://www.bevco.dk/account/login", + "https://www.bevco.dk/login", ), ( "DRINX_PASSWORD", @@ -102,13 +102,13 @@ "KARET_PASSWORD", "Hængelås-kodeord til karet", None, - "https://fredagscafeen.dk", + None, ), ( "KOELESKABE_PASSWORD", "Hængelås-kodeord til køleskabene i Nygaardkælderen", None, - "https://fredagscafeen.dk", + None, ), ] diff --git a/web/templates/secrets_admin.html b/web/templates/secrets_admin.html index c461c84..343cbbc 100644 --- a/web/templates/secrets_admin.html +++ b/web/templates/secrets_admin.html @@ -1,4 +1,13 @@ {% extends "admin/base_site.html" %} +{% block scripts %} + +{% endblock scripts %} {% block content %}
{% if value != None %}
- {{ value }}
+ {{ value }}
+
{% else %}
Missing from environment
{% endif %}
|