浏览代码

Add link to the "about" page

Miraty 2 年之前
父节点
当前提交
69a8673fd6
共有 5 个文件被更改,包括 18 次插入2 次删除
  1. 4 0
      DOCS/configuration.md
  2. 1 0
      config.ini
  3. 5 1
      locales/fr/C/LC_MESSAGES/messages.po
  4. 5 1
      locales/messages.pot
  5. 3 0
      pg-view/index.php

+ 4 - 0
DOCS/configuration.md

@@ -28,6 +28,10 @@ String defining the displayed identity of the service.
 
 Pretty string sometimes prefixed to the service name. Can be empty.
 
+### `about_url`
+
+Address of the service presentation page.
+
 ### `services[]`
 
 Keys `auth`, `reg`, `ns` and `ht` are required.

+ 1 - 0
config.ini

@@ -5,6 +5,7 @@ public_domains[] = "servnest.test"
 prefix = ""
 service_name = "ServNest"
 service_emoji = "🪺"
+about_url = "https://about.servnest.test/"
 services[auth] = "enabled"
 services[reg] = "enabled"
 services[ns] = "enabled"

+ 5 - 1
locales/fr/C/LC_MESSAGES/messages.po

@@ -1,7 +1,7 @@
 msgid ""
 msgstr ""
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-05-10 01:29+0200\n"
+"POT-Creation-Date: 2023-05-18 23:15+0200\n"
 "Language: fr\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 
@@ -342,6 +342,10 @@ msgstr "Les TTLs plus courts que %s secondes sont interdits."
 msgid "TTLs longer than %s seconds are forbidden."
 msgstr "Les TTLs plus longs que %s secondes sont interdits."
 
+#: pg-view/index.php:3
+msgid "About this installation"
+msgstr "À propos de cette installation"
+
 #: pg-act/auth/approval.php:4
 msgid "This account is already approved."
 msgstr "Ce compte est déjà approuvé."

+ 5 - 1
locales/messages.pot

@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-05-10 01:29+0200\n"
+"POT-Creation-Date: 2023-05-18 23:15+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -354,6 +354,10 @@ msgstr ""
 msgid "TTLs longer than %s seconds are forbidden."
 msgstr ""
 
+#: pg-view/index.php:3
+msgid "About this installation"
+msgstr ""
+
 #: pg-act/auth/approval.php:4
 msgid "This account is already approved."
 msgstr ""

+ 3 - 0
pg-view/index.php

@@ -1,4 +1,7 @@
 <nav>
+	<p>
+		<span aria-hidden="true">➡️ </span><em><a href="<?= CONF['common']['about_url'] ?>"><?= _('About this installation') ?></a></em>
+	</p>
 	<dl>
 <?php