From 839b4b51e84b9e64cccbe9062ff93cdf125ccd18 Mon Sep 17 00:00:00 2001 From: discomrade <83621080+discomrade@users.noreply.github.com> Date: Thu, 13 Jun 2024 04:07:35 +0000 Subject: [PATCH] [alias] add info on tag aliases and tag implications --- ext/alias_editor/theme.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/alias_editor/theme.php b/ext/alias_editor/theme.php index af21f8ff..a0043914 100644 --- a/ext/alias_editor/theme.php +++ b/ext/alias_editor/theme.php @@ -7,7 +7,8 @@ namespace Shimmie2; use MicroHTML\HTMLElement; use function MicroHTML\emptyHTML; -use function MicroHTML\{BR,INPUT}; +use function MicroHTML\rawHTML; +use function MicroHTML\{BR,CODE,INPUT}; class AliasEditorTheme extends Themelet { @@ -18,7 +19,9 @@ class AliasEditorTheme extends Themelet { global $page, $user; - $html = emptyHTML($table, BR(), $paginator, BR(), SHM_A("alias/export/aliases.csv", "Download as CSV", args: ["download" => "aliases.csv"])); + $info_html = rawHTML("A tag alias replaces a tag with another tag or tags.".BR()."A tag implication (where the old tag stays and adds a new tag) is made by including the old tag in the list of new tags (".CODE("fox")." → ".CODE("fox canine").")".BR()); + + $html = emptyHTML($info_html, BR(), $table, BR(), $paginator, BR(), SHM_A("alias/export/aliases.csv", "Download as CSV", args: ["download" => "aliases.csv"])); $bulk_form = SHM_FORM("alias/import", multipart: true); $bulk_form->appendChild(