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