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.

24 lines
1.3 KiB
Smarty

10 years ago
<!-- IF !notifications.length -->
<li class="no-notifs"><a href="#">[[notifications:no_notifs]]</a></li>
10 years ago
<!-- ENDIF !notifications.length -->
{{{each notifications}}}
<li class="{notifications.readClass}" data-nid="{notifications.nid}" data-path="{config.relative_path}{notifications.path}" <!-- IF notifications.pid --> data-pid="{notifications.pid}"<!-- ENDIF notifications.pid --><!-- IF notifications.tid --> data-tid="{notifications.tid}"<!-- ENDIF notifications.tid -->>
10 years ago
<!-- IF notifications.image -->
<!-- IF notifications.from -->
<a href="{config.relative_path}/user/{notifications.user.userslug}"><img class="pull-left user-img avatar avatar-md avatar-rounded"src="{notifications.image}" /></a>
10 years ago
<!-- ENDIF notifications.from -->
<!-- ELSE -->
<a href="{config.relative_path}/user/{notifications.user.userslug}"><div class="pull-left avatar avatar-md avatar-rounded" style="background-color: {notifications.user.icon:bgColor};">{notifications.user.icon:text}</div></a>
10 years ago
<!-- ENDIF notifications.image -->
<div class="pull-right mark-read" aria-label="Mark Read"></div>
10 years ago
<a href="{config.relative_path}{notifications.path}">
10 years ago
<span class="pull-right relTime">{notifications.timeago}</span>
<span class="text">{notifications.bodyShort}</span>
</a>
<div class="clear"></div>
</li>
{{{end}}}