Add the new variable `FileProcessorFormField::$bigPreview` with getter and setter.
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / notificationList.tpl
1 {capture assign='contentTitleBadge'}<span class="badge jsNotificationsBadge">{#$__wcf->getUserNotificationHandler()->countAllNotifications()}</span>{/capture}
2
3 {capture assign='headContent'}
4 <link rel="alternate" type="application/rss+xml" title="{lang}wcf.global.button.rss{/lang}" href="{link controller='NotificationRssFeed'}at={@$__wcf->getUser()->userID}-{@$__wcf->getUser()->accessToken}{/link}">
5 {/capture}
6
7 {capture assign='contentInteractionPagination'}
8 {pages print=true assign=pagesLinks controller='NotificationList' link="pageNo=%d"}
9 {/capture}
10
11 {capture assign='contentInteractionButtons'}
12 {if $__wcf->getUserNotificationHandler()->getNotificationCount()}
13 <button type="button" class="jsMarkAllAsConfirmed contentInteractionButton button small jsOnly">{icon name='check'} <span>{lang}wcf.global.button.markAllAsRead{/lang}</span></button>
14 {/if}
15 {/capture}
16
17 {capture assign='contentInteractionDropdownItems'}
18 <li><a rel="alternate" href="{link controller='NotificationRssFeed'}at={@$__wcf->getUser()->userID}-{@$__wcf->getUser()->accessToken}{/link}">{lang}wcf.global.button.rss{/lang}</a></li>
19 {/capture}
20
21 {include file='header'}
22
23 {if $notifications[notifications]}
24 {assign var=lastPeriod value=''}
25
26 {foreach from=$notifications[notifications] item=$notification}
27 {if $notification[event]->getPeriod() != $lastPeriod}
28 {if $lastPeriod}
29 </ul>
30 </section>
31 {/if}
32 {assign var=lastPeriod value=$notification[event]->getPeriod()}
33
34 <section class="section sectionContainerList">
35 <h2 class="sectionTitle">{$lastPeriod}</h2>
36
37 <ul class="containerList userNotificationItemList">
38 {/if}
39 {capture assign='__notificationLink'}{if $notification[event]->isConfirmed()}{$notification[event]->getLink()}{else}{link controller='NotificationConfirm' id=$notification[notificationID]}{/link}{/if}{/capture}
40 <li class="jsNotificationItem notificationItem{if $notification[authors] > 1} groupedNotificationItem{/if}{if !$notification[event]->isConfirmed()} notificationUnconfirmed{/if}" data-link="{@$__notificationLink}" data-link-replace-all="{if $notification[event]->isConfirmed()}false{else}true{/if}" data-object-id="{@$notification[notificationID]}" data-is-read="{if $notification[event]->isConfirmed()}true{else}false{/if}" data-is-grouped="{if $notification[authors] > 1}true{else}false{/if}">
41 <div class="box32">
42 {if $notification[authors] < 2}
43 <div class="jsTooltip" title="{$notification[event]->getAuthor()->username}">
44 {@$notification[event]->getAuthor()->getAvatar()->getImageTag(32)}
45 </div>
46
47 <div class="details">
48 <p>
49 {if !$notification[confirmed]}<span class="badge label newContentBadge">{lang}wcf.message.new{/lang}</span>{/if}
50 <a href="{@$__notificationLink}" class="userNotificationItemLink">{@$notification[event]->getMessage()}</a>
51 </p>
52 <p><small>{@$notification[time]|time}</small></p>
53 </div>
54 {else}
55 <div>
56 {icon size=32 name='users'}
57 </div>
58
59 <div class="details">
60 <p>
61 {if !$notification[confirmed]}<span class="badge label newContentBadge">{lang}wcf.message.new{/lang}</span>{/if}
62 <a href="{@$__notificationLink}" class="userNotificationItemLink">{@$notification[event]->getMessage()}</a>
63 </p>
64 <p><small>{@$notification[time]|time}</small></p>
65
66 <ul class="userAvatarList small">
67 {foreach from=$notification[event]->getAuthors() item=author}
68 {if $author->userID}
69 <li class="jsTooltip" title="{$author->username}">{user object=$author type='avatar24'}</li>
70 {/if}
71 {/foreach}
72 </ul>
73 </div>
74 {/if}
75 </div>
76 </li>
77 {/foreach}
78 </ul>
79 </section>
80
81 <footer class="contentFooter">
82 {hascontent}
83 <div class="paginationBottom">
84 {content}{@$pagesLinks}{/content}
85 </div>
86 {/hascontent}
87
88 {hascontent}
89 <nav class="contentFooterNavigation">
90 <ul>
91 {content}{event name='contentFooterNavigation'}{/content}
92 </ul>
93 </nav>
94 {/hascontent}
95 </footer>
96 {else}
97 <woltlab-core-notice type="info">{lang}wcf.user.notification.noNotifications{/lang}</woltlab-core-notice>
98 {/if}
99
100 <script data-relocate="true">
101 $(function() {
102 WCF.Language.addObject({
103 'wcf.user.notification.markAllAsConfirmed.confirmMessage': '{jslang}wcf.user.notification.markAllAsConfirmed.confirmMessage{/jslang}'
104 });
105
106 new WCF.Notification.List();
107 });
108 </script>
109
110 {include file='footer'}