Replace Javascript notification string formatting with Smarty templates
This commit is contained in:
parent
b7cee324b0
commit
5a12bd87f3
12 changed files with 107 additions and 140 deletions
9
view/theme/vier/templates/notifications/nav/notify.tpl
Normal file
9
view/theme/vier/templates/notifications/nav/notify.tpl
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue