From 541bbe3a1a6803b3251eb779bdef3e63259854af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 19 Jul 2017 17:59:43 +0200 Subject: [PATCH] Use smaller avatars in email notifications Closes WoltLab/WCF#2196 --- com.woltlab.wcf/templates/email_html.tpl | 20 +++++++++++++++++++ ...il_notification_moderationQueueComment.tpl | 4 ++-- ...ication_moderationQueueCommentResponse.tpl | 4 ++-- ...email_notification_userFollowFollowing.tpl | 4 ++-- .../email_notification_userProfileComment.tpl | 4 ++-- ...otification_userProfileCommentResponse.tpl | 4 ++-- ...cation_userProfileCommentResponseOwner.tpl | 4 ++-- 7 files changed, 32 insertions(+), 12 deletions(-) diff --git a/com.woltlab.wcf/templates/email_html.tpl b/com.woltlab.wcf/templates/email_html.tpl index c3894fa59b..90cfc6c8d7 100644 --- a/com.woltlab.wcf/templates/email_html.tpl +++ b/com.woltlab.wcf/templates/email_html.tpl @@ -102,6 +102,26 @@ padding-left: 15px; } + .box48 { + border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; + border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; + padding: 12px; + } + + .box48 td.boxContent { + padding-left: 12px; + } + + .box32 { + border-top: 1px solid {$style->getVariable('wcfContentBorder', true)}; + border-bottom: 1px solid {$style->getVariable('wcfContentBorder', true)}; + padding: 10px; + } + + .box32 td.boxContent { + padding-left: 10px; + } + .containerHeadline h3 { margin: 0; padding: 0; diff --git a/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl b/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl index 2e5a8f1394..15658a7738 100644 --- a/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl +++ b/com.woltlab.wcf/templates/email_notification_moderationQueueComment.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'} diff --git a/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl b/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl index e5522f7513..37675dc1d1 100644 --- a/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl +++ b/com.woltlab.wcf/templates/email_notification_moderationQueueCommentResponse.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl b/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl index 6ba0f6c0f1..49f8b8f332 100644 --- a/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl +++ b/com.woltlab.wcf/templates/email_notification_userFollowFollowing.tpl @@ -7,8 +7,8 @@ {lang}wcf.user.notification.follow.mail.html{/lang} {assign var='user' value=$event->getAuthor()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='userContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl b/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl index aeedccd625..07866879a9 100644 --- a/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl +++ b/com.woltlab.wcf/templates/email_notification_userProfileComment.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl index 83e166a4e6..4cd7492862 100644 --- a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl +++ b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponse.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}
diff --git a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl index a0b28ee6d4..5874fefdfd 100644 --- a/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl +++ b/com.woltlab.wcf/templates/email_notification_userProfileCommentResponseOwner.tpl @@ -10,8 +10,8 @@ {assign var='user' value=$event->getAuthor()} {assign var='comment' value=$event->getUserNotificationObject()} - {if $notificationType == 'instant'}{assign var='avatarSize' value=128} - {else}{assign var='avatarSize' value=64}{/if} + {if $notificationType == 'instant'}{assign var='avatarSize' value=48} + {else}{assign var='avatarSize' value=32}{/if} {capture assign='commentContent'}
-- 2.20.1