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
|
@ -141,17 +141,7 @@
|
|||
</ul>
|
||||
|
||||
</nav>
|
||||
<ul id="nav-notifications-template" style="display:none;" rel="template">
|
||||
<li class="{4}" onclick="location.href='{0}';">
|
||||
<div class="notif-entry-wrapper">
|
||||
<div class="notif-photo-wrapper"><a href="{6}"><img data-src="{1}"></a></div>
|
||||
<div class="notif-desc-wrapper">
|
||||
{8}{7}
|
||||
<div><time class="notif-when" title="{5}">{3}</time></div>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!--
|
||||
<div class="icon-flag" style="position: fixed; bottom: 10px; left: 20px; z-index:9;">{{$langselector}}</div>
|
||||
-->
|
||||
|
|
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