From fac68fe5529faab715335d2f7e9b4753a21dfa72 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 12 Nov 2023 09:53:34 +0100 Subject: [PATCH] implemented admin overview correctly. fixes #58 --- web/inc/OpenTrashmailBackend.class.php | 1 + web/templates/email-table.html.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/web/inc/OpenTrashmailBackend.class.php b/web/inc/OpenTrashmailBackend.class.php index 222e1a1..1332440 100644 --- a/web/inc/OpenTrashmailBackend.class.php +++ b/web/inc/OpenTrashmailBackend.class.php @@ -191,6 +191,7 @@ class OpenTrashmailBackend{ $emails = getEmailsOfEmail($email); //var_dump($emails); return $this->renderTemplate('email-table.html',[ + 'isadmin'=>($this->settings['ADMIN']==$email), 'email'=>$email, 'emails'=>$emails, 'dateformat'=>$this->settings['DATEFORMAT'] diff --git a/web/templates/email-table.html.php b/web/templates/email-table.html.php index 21571cf..5ff3361 100644 --- a/web/templates/email-table.html.php +++ b/web/templates/email-table.html.php @@ -18,6 +18,7 @@ # Date From + To Subject Action @@ -35,10 +36,16 @@ + + + Open + Delete + Open Delete +