Replace Javascript notification string formatting with Smarty templates

This commit is contained in:
Hypolite Petovan 2022-03-04 00:21:06 -05:00
commit 5a12bd87f3
12 changed files with 107 additions and 140 deletions

View file

@ -0,0 +1,9 @@
<li class="notification-{{if !$notify.seen}}un{{/if}}seen" onclick="location.href='{{$notify.href}}';">
<div class="notif-entry-wrapper">
<div class="notif-photo-wrapper"><a href="{{$notify.contact.url}}"><img data-src="{{$notify.contact.photo}}"></a></div>
<div class="notif-desc-wrapper">
{{$notify.richtext nofilter}}
<div><time class="notif-when" title="{{$notify.localdate}}">{{$notify.ago}}</time></div>
</div>
</div>
</li>