Merge branch '5.3'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / email_notification_moderationQueueCommentResponse.tpl
1 {assign var='count' value=$event->getAuthors()|count}{assign var='guestTimesTriggered' value=$event->getNotification()->guestTimesTriggered}{assign var='authors' value=$event->getAuthors()|array_values}
2 {if $mimeType === 'text/plain'}
3 {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.plaintext{/lang}{/capture}
4 {lang}{$notificationContent[variables][languageItemPrefix]}.commentResponse.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered} {* this line ends with a space *}
5
6 {@$event->getUserNotificationObject()->getMailText($mimeType)}{/if} {* this line ends with a space *}
7 {else}
8 {capture assign='authorList'}{lang}wcf.user.notification.mail.authorList.html{/lang}{/capture}
9 {lang}{$notificationContent[variables][languageItemPrefix]}.commentResponse.mail.html{/lang}
10 {assign var='user' value=$event->getAuthor()}
11 {assign var='comment' value=$event->getUserNotificationObject()}
12
13 {if $notificationType == 'instant'}{assign var='avatarSize' value=48}
14 {else}{assign var='avatarSize' value=32}{/if}
15 {capture assign='commentContent'}
16 <table cellpadding="0" cellspacing="0" border="0">
17 <tr>
18 <td><a href="{link controller='User' object=$user isHtmlEmail=true}{/link}" title="{$comment->username}">{@$user->getAvatar()->getSafeImageTag($avatarSize)}</a></td>
19 <td class="boxContent">
20 <div class="containerHeadline">
21 <h3>
22 {if $comment->userID}
23 <a href="{link controller='User' object=$user isHtmlEmail=true}{/link}">{$comment->username}</a>
24 {else}
25 {$comment->username}
26 {/if}
27 &#xb7;
28 <small>{$comment->time|plainTime}</small>
29 </h3>
30 </div>
31 <div>
32 {@$comment->getMailText($mimeType)}
33 </div>
34 </td>
35 </tr>
36 </table>
37 {/capture}
38 {include file='email_paddingHelper' block=true class='box'|concat:$avatarSize content=$commentContent sandbox=true}
39 {/if}