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
|
@ -65,7 +65,3 @@
|
|||
<span id="nav-end"></span>
|
||||
<span id="banner">{{$banner nofilter}}</span>
|
||||
</nav>
|
||||
|
||||
<ul id="nav-notifications-template" style="display:none;" rel="template">
|
||||
<li class="{4}"><a href="{0}" title="{5}"><img data-src="{1}" height="24" width="24" alt="" />{2} <span class="notif-when">{3}</span></a></li>
|
||||
</ul>
|
||||
|
|
3
view/templates/notifications/nav/notify.tpl
Normal file
3
view/templates/notifications/nav/notify.tpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
<li class="notification-{{if !$notify.seen}}un{{/if}}seen">
|
||||
<a href="{{$notify.href}}" title="{{$notify.localdate}}"><img data-src="{{$notify.contact.photo}}" height="24" width="24" alt="" />{{$notify.richtext nofilter}} <span class="notif-when">{{$notify.ago}}</span></a>
|
||||
</li>
|
Loading…
Add table
Add a link
Reference in a new issue