public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [PATCH pmg-api 3/5] pmgproxy: pass consent-text as template variable to index
Date: Mon,  8 Jun 2026 08:56:21 +0200	[thread overview]
Message-ID: <20260608065653.624545-4-s.ivanov@proxmox.com> (raw)
In-Reply-To: <20260608065653.624545-1-s.ivanov@proxmox.com>

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
 src/PMG/Service/pmgproxy.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PMG/Service/pmgproxy.pm b/src/PMG/Service/pmgproxy.pm
index de7a6c58..7bcadd53 100644
--- a/src/PMG/Service/pmgproxy.pm
+++ b/src/PMG/Service/pmgproxy.pm
@@ -267,6 +267,7 @@ sub get_index {
 
     my $cfg = PMG::Config->new();
     my $quarantinelink = $cfg->get('spamquar', 'quarantinelink');
+    my $consent_text = $cfg->get('admin', 'consent-text');
 
     $username = '' if !$username;
 
@@ -292,6 +293,7 @@ sub get_index {
         i18n_yew_mobile_mtime => $i18n_yew_mtime,
         yew_mobile_mtime => $ui_yew_mtime,
         yew_mobile_base_path => '/mobile',
+        consenttext => $consent_text,
     };
 
     my $template_name;
-- 
2.47.3





  parent reply	other threads:[~2026-06-08  6:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08  6:56 [PATCH pmg-api/pmg-docs/pmg-gui 0/5] add optional consent-banner to be shown before login Stoiko Ivanov
2026-06-08  6:56 ` [PATCH pmg-docs 1/5] pmgconfig: add short documentation of the consent banner Stoiko Ivanov
2026-06-08  6:56 ` [PATCH pmg-api 2/5] config: add consent-text key Stoiko Ivanov
2026-06-08  6:56 ` Stoiko Ivanov [this message]
2026-06-08  6:56 ` [PATCH pmg-gui 4/5] login: show optional consent-banner before login Stoiko Ivanov
2026-06-08  6:56 ` [PATCH pmg-gui 5/5] system options: add online help link for consent banner Stoiko Ivanov
2026-06-08  7:19 ` [PATCH pmg-api/pmg-docs/pmg-gui 0/5] add optional consent-banner to be shown before login Dominik Csapak
2026-06-08  7:42   ` Stoiko Ivanov
2026-06-08 11:01 ` applied: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260608065653.624545-4-s.ivanov@proxmox.com \
    --to=s.ivanov@proxmox.com \
    --cc=pmg-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal