From f2b434983e5ecd883c425a0c821419c006356798 Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 12 May 2025 12:14:52 +0200 Subject: [PATCH 1/2] make "Show/Hide Keys" persistent --- setup.sh | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/setup.sh b/setup.sh index 301f1ac..be4359f 100644 --- a/setup.sh +++ b/setup.sh @@ -1679,7 +1679,7 @@ cat <<'HTML_END' > templates/index.html {{ _('Cover') }} {{ _('Name') }} - {{ _('Key') }} + {{ _('Key') }} {{ _('Status') }} {{ _('Created') }} {{ _('Redeem by') }} @@ -1712,7 +1712,7 @@ cat <<'HTML_END' > templates/index.html {{ game.name }} - {{ game.steam_key }} + {{ game.steam_key }} {% if game.status == 'nicht eingelöst' %} {{ _('Not redeemed') }} @@ -1840,22 +1840,34 @@ document.querySelectorAll('.generate-redeem').forEach(btn => { + {% else %}
{{ _('No games yet') }}
{% endif %} @@ -2100,7 +2112,7 @@ cat < templates/edit_game.html - +
-- 2.40.1 From 24ae1a622cad8aef73ca5102155363ca35b8ed74 Mon Sep 17 00:00:00 2001 From: nocci Date: Mon, 12 May 2025 12:15:57 +0200 Subject: [PATCH 2/2] updated index.html --- steam-gift-manager/templates/index.html | 40 +++++++++++++++---------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/steam-gift-manager/templates/index.html b/steam-gift-manager/templates/index.html index faa450e..9249ac2 100644 --- a/steam-gift-manager/templates/index.html +++ b/steam-gift-manager/templates/index.html @@ -8,7 +8,7 @@ {{ _('Cover') }} {{ _('Name') }} - {{ _('Key') }} + {{ _('Key') }} {{ _('Status') }} {{ _('Created') }} {{ _('Redeem by') }} @@ -41,7 +41,7 @@ {{ game.name }} - {{ game.steam_key }} + {{ game.steam_key }} {% if game.status == 'nicht eingelöst' %} {{ _('Not redeemed') }} @@ -169,19 +169,30 @@ document.querySelectorAll('.generate-redeem').forEach(btn => { @@ -189,4 +200,3 @@ document.addEventListener('DOMContentLoaded', function() {
{{ _('No games yet') }}
{% endif %} {% endblock %} - -- 2.40.1