You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.7 KiB
Smarty
45 lines
1.7 KiB
Smarty
|
|
<div class="notifications">
|
|
|
|
<!-- IMPORT partials/breadcrumbs.tpl -->
|
|
|
|
<div class="dropdown pull-right visible-xs-block">
|
|
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-expanded="true">
|
|
<i class="fa fa-eye"></i>
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="dropdownMenu1">
|
|
<li role="presentation"><a role="menuitem" tabindex="-1" href="#" data-ajaxify="false" component="notifications/mark_all">[[notifications:mark_all_read]]</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<div class="alert alert-info <!-- IF notifications.length -->hidden<!-- ENDIF notifications.length -->">
|
|
[[notifications:no_notifs]]
|
|
</div>
|
|
|
|
<ul class="notifications-list" data-nextstart="{nextStart}">
|
|
<!-- BEGIN notifications -->
|
|
<li data-nid="{notifications.nid}" class="{notifications.readClass}" component="notifications/item">
|
|
<!-- IF notifications.image -->
|
|
<!-- IF notifications.from -->
|
|
<a class="pull-left" href="{config.relative_path}/user/{notifications.user.userslug}"><img class="user-img" src="{notifications.image}" /></a>
|
|
<!-- ENDIF notifications.from -->
|
|
<!-- ELSE -->
|
|
<a class="pull-left" href="{config.relative_path}/user/{notifications.user.userslug}"><div class="pull-left user-icon user-img" style="background-color: {notifications.user.icon:bgColor};">{notifications.user.icon:text}</div></a>
|
|
<!-- ENDIF notifications.image -->
|
|
|
|
<p>
|
|
<a component="notifications/item/link" href="{config.relative_path}{notifications.path}">{notifications.bodyShort}</a>
|
|
</p>
|
|
<p class="timestamp">
|
|
<span class="timeago" title="{notifications.datetimeISO}"></span>
|
|
</p>
|
|
</li>
|
|
<!-- END notifications -->
|
|
</ul>
|
|
</div>
|
|
|
|
|