From: Tim Düsterhus Date: Fri, 30 Dec 2016 16:48:38 +0000 (+0100) Subject: Add mark as confirmed button in email notifications X-Git-Tag: 3.0.0_RC_4~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=713d7042e6ea4ee7b78c2025162ec2dea7e6d1ae;p=GitHub%2FWoltLab%2FWCF.git Add mark as confirmed button in email notifications --- 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}