From 713d7042e6ea4ee7b78c2025162ec2dea7e6d1ae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 30 Dec 2016 17:48:38 +0100 Subject: [PATCH] Add mark as confirmed button in email notifications --- com.woltlab.wcf/templates/email_html.tpl | 5 +++++ com.woltlab.wcf/templates/email_notification.tpl | 7 +++++++ com.woltlab.wcf/templates/email_paddingHelper.tpl | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/com.woltlab.wcf/templates/email_html.tpl b/com.woltlab.wcf/templates/email_html.tpl index 32311972d5..6134d8a55d 100644 --- a/com.woltlab.wcf/templates/email_html.tpl +++ b/com.woltlab.wcf/templates/email_html.tpl @@ -20,6 +20,11 @@ text-decoration: none; } + p, .paragraphMargin { + margin-top: 1em; + margin-bottom: 1em; + } + td { vertical-align: top; } diff --git a/com.woltlab.wcf/templates/email_notification.tpl b/com.woltlab.wcf/templates/email_notification.tpl index 5fb06f5b02..b7e7ec855d 100644 --- a/com.woltlab.wcf/templates/email_notification.tpl +++ b/com.woltlab.wcf/templates/email_notification.tpl @@ -18,6 +18,13 @@ {@$notificationContent} {/if} + {capture assign=button} + + {lang}wcf.user.notification.markAsConfirmed{/lang} + + {/capture} + {include file='email_paddingHelper' class='button' outerClass='paragraphMargin' content=$button sandbox=true} + {lang}wcf.user.notification.mail.html.outro{/lang} {/capture} {include file='email_html'} diff --git a/com.woltlab.wcf/templates/email_paddingHelper.tpl b/com.woltlab.wcf/templates/email_paddingHelper.tpl index e18171b88d..67cb26edc3 100644 --- a/com.woltlab.wcf/templates/email_paddingHelper.tpl +++ b/com.woltlab.wcf/templates/email_paddingHelper.tpl @@ -1,5 +1,5 @@ {* This construct is needed for Microsoft Outlook: https://litmus.com/help/email-clients/outlookcom-margins/ *} - +
{@$content} -- 2.20.1