From 1b60d5ca77a387122bcf900c2972edca63403155 Mon Sep 17 00:00:00 2001
From: winter
Date: Mon, 20 Jan 2025 20:10:54 +0000
Subject: settings tweaks and "about instance" page
---
templates/about_page.php | 24 ++++++++++++++++++++++++
templates/global_settings_page.php | 20 ++++++++++++++++++--
templates/left_side_navigation.php | 11 +++++++++--
templates/settings_field.php | 9 +++++++--
4 files changed, 58 insertions(+), 6 deletions(-)
create mode 100644 templates/about_page.php
(limited to 'templates')
diff --git a/templates/about_page.php b/templates/about_page.php
new file mode 100644
index 0000000..fdfaaa3
--- /dev/null
+++ b/templates/about_page.php
@@ -0,0 +1,24 @@
+ __('about.pageTitle')], function () {
+ $s = GlobalSettings::getInstance();
+ $desc = $s->get('about.description') ?? '';
+ $terms = $s->get('about.terms') ?? '';
+ ?>
+
+
+
+
+
= $desc ?>
+
+
+ = __('about.terms.heading') ?>
+
+
+
+ = $terms ?>
+
+
+ sprintf(__('globalSettings.pageTitle'), $prefix)
+ sprintf(__("globalSettings.pageTitle.$prefix"), $prefix)
], function () {
global $prefix;
+ $s = GlobalSettings::getInstance();
+ ?>
+
+
= __('globalSettings.categories') ?>
+
+ getAllPrefixes() as $p): ?>
+
+ - = $p ?>
+
+
+
+ $prefix]);
});
\ No newline at end of file
diff --git a/templates/left_side_navigation.php b/templates/left_side_navigation.php
index 983aa07..f03ee23 100644
--- a/templates/left_side_navigation.php
+++ b/templates/left_side_navigation.php
@@ -15,12 +15,19 @@ if ($user != null) {
if ($user->isAdmin) {
$links[] = ['href' => '/admin/settings/instance', 'icon' => 'settings', 'label' => __('navigation.instanceSettings')];
}
+}
+$links[] = [
+ 'href' => '/about',
+ 'icon' => 'info',
+ 'label' => __('about.pageTitle')
+];
+if ($user != null) {
$links[] = [
'href' => '/logout',
'icon' => 'logout',
'label' => __('navigation.logout'),
'confirmation' => __('navigation.logout.confirmation')
];
-
- call_template('side_navigation', ['links' => $links]);
}
+
+call_template('side_navigation', ['links' => $links]);
diff --git a/templates/settings_field.php b/templates/settings_field.php
index c0f0f7d..1ebbfb3 100644
--- a/templates/settings_field.php
+++ b/templates/settings_field.php
@@ -1,7 +1,8 @@
', $key);
+
+
+
+
--
cgit v1.3