From 3341d035f01e654dfd8bf3b347535d2ebf25785d Mon Sep 17 00:00:00 2001 From: IKEDA Soji Date: Thu, 12 May 2022 13:05:45 +0900 Subject: [PATCH] mail templates: If web interface is available, use it for command links. --- default/mail_tt2/moderate.tt2 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/default/mail_tt2/moderate.tt2 b/default/mail_tt2/moderate.tt2 index e1e8e69f5..f9ca555c0 100644 --- a/default/mail_tt2/moderate.tt2 +++ b/default/mail_tt2/moderate.tt2 @@ -26,17 +26,26 @@ Content-Disposition: inline [% ELSE -%] [% IF method == 'md5' && ! request_topic -%] [%|loc(list.name)%]To distribute the attached message in list %1:[%END%] +[% IF conf.wwsympa_url -%] +[% 'distribute' | url_abs([list.name,modkey]) %] +[%- ELSE -%] [% "${conf.email}@${domain}" | mailtourl({subject => "DISTRIBUTE ${list.name} ${modkey}"}) %] [%|loc(conf.email,domain)%]Or send a message to %1@%2 with the following subject:[%END%] DISTRIBUTE [% list.name %] [% modkey %] +[%- END %] [%|loc%]To reject it (it will be removed):[%END%] +[% IF conf.wwsympa_url -%] +[% 'reject' | url_abs([list.name,modkey]) %] +[%- ELSE -%] [% "${conf.email}@${domain}" | mailtourl({subject => "REJECT ${list.name} ${modkey}"}) %] [%|loc(conf.email,domain)%]Or send a message to %1@%2 with the following subject:[%END%] REJECT [% list.name %] [% modkey %] -[%END%] +[%- END %] +[%- END %] + [%|loc%]The messages moderating documentation:[%END%] [% 'help' | url_abs(['admin-moderate.html']) %] [%- END%] [%- END%]