From 2fc5228f8a24347c839bea716e195c90ebd1c9d0 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 5 Aug 2017 12:29:39 +0200 Subject: [PATCH] Add notification links to notification tests See #2359 --- .../devtoolsNotificationTestDialog.tpl | 24 +++++++++++++++++++ .../UserNotificationEventAction.class.php | 12 ++++++++++ wcfsetup/install/lang/de.xml | 3 +++ wcfsetup/install/lang/en.xml | 3 +++ 4 files changed, 42 insertions(+) diff --git a/wcfsetup/install/files/acp/templates/devtoolsNotificationTestDialog.tpl b/wcfsetup/install/files/acp/templates/devtoolsNotificationTestDialog.tpl index fc7fc58a77..06bc836afa 100644 --- a/wcfsetup/install/files/acp/templates/devtoolsNotificationTestDialog.tpl +++ b/wcfsetup/install/files/acp/templates/devtoolsNotificationTestDialog.tpl @@ -31,6 +31,18 @@ {/if} + {if $event[link]|isset} +
+
{lang}wcf.acp.devtools.notificationTest.link{/lang}
+
{@$event[link]}
+
+ {else} +
+
{lang}wcf.acp.devtools.notificationTest.link.exception{/lang}
+
{$event[linkException]}
+
+ {/if} + {if $hasEmailSupport} {if $event[instantEmail]|isset}
@@ -82,6 +94,17 @@
+ + {if $hasEmailSupport}