-
Notifications
You must be signed in to change notification settings - Fork 35
/
notifications.tpl
53 lines (48 loc) · 2.19 KB
/
notifications.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<div class="notifications">
<!-- IMPORT partials/breadcrumbs.tpl -->
<div class="btn-toolbar">
<div class="btn-group dropdown pull-right">
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown">
<!-- IF selectedFilter -->{selectedFilter.name}<!-- ENDIF selectedFilter --> <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<!-- BEGIN filters -->
<!-- IF filters.separator -->
<li role="separator" class="divider"></li>
<!-- ELSE -->
<li role="presentation" class="category">
<a role="menu-item" href="{config.relative_path}/notifications?filter={filters.filter}"><i class="fa fa-fw <!-- IF filters.selected -->fa-check<!-- ENDIF filters.selected -->"></i> {filters.name}</a>
</li>
<!-- ENDIF filters.separator -->
<!-- END filters -->
</ul>
</div>
<div class="btn-group pull-right">
<button class="btn btn-default" type="button" component="notifications/mark_all">
[[notifications:mark_all_read]]
</button>
</div>
</div>
<div class="alert alert-info <!-- IF notifications.length -->hidden<!-- ENDIF notifications.length -->">
[[notifications:no_notifs]]
</div>
<div class="notifications-list" data-nextstart="{nextStart}">
<!-- BEGIN notifications -->
<div data-nid="{notifications.nid}" class="{notifications.readClass}" component="notifications/item">
<div class="notification-image">
<!-- IF notifications.image -->
<!-- IF notifications.from -->
<a class="pull-left" href="{config.relative_path}/user/{notifications.user.userslug}"><img class="user-avatar" src="{notifications.image}" /></a>
<!-- ENDIF notifications.from -->
<!-- ELSE -->
<a class="pull-left" href="{config.relative_path}/user/{notifications.user.userslug}"><div class="user-icon" style="background-color: {notifications.user.icon:bgColor};">{notifications.user.icon:text}</div></a>
<!-- ENDIF notifications.image -->
</div>
<div class="notification-msg">
<a component="notifications/item/link" href="{notifications.path}">{notifications.bodyShort}</a>
<span class="timeago" title="{notifications.datetimeISO}"></span>
</div>
</div>
<!-- END notifications -->
</div>
</div>