Merge remote-tracking branch 'refs/remotes/origin/3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / email_notification_moderationQueueComment.tpl
CommitLineData
7c12ba94
TD
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]}.comment.mail.plaintext{/lang}{if $count == 1 && !$guestTimesTriggered}
5
6{$event->getUserNotificationObject()->message}{/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]}.comment.mail.html{/lang}
10 {assign var='user' value=$event->getAuthor()}
11 {assign var='comment' value=$event->getUserNotificationObject()}
12
541bbe3a
TD
13 {if $notificationType == 'instant'}{assign var='avatarSize' value=48}
14 {else}{assign var='avatarSize' value=32}{/if}
7c12ba94
TD
15 {capture assign='commentContent'}
16 <table cellpadding="0" cellspacing="0" border="0">
17 <tr>
18 <td><a href="{link controller='User' object=$user isEmail=true}{/link}" title="{$comment->username}">{@$user->getAvatar()->getImageTag($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 isEmail=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->message}
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}