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
|
@ -461,22 +461,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{{*The second part of the notifications dropdown menu. It handles the notifications *}}
|
||||
{{if $nav.notifications}}
|
||||
<ul id="nav-notifications-template" class="media-list" style="display:none;" rel="template">
|
||||
<li class="{4} notif-entry">
|
||||
<div class="notif-entry-wrapper media">
|
||||
<div class="notif-photo-wrapper media-object pull-left" aria-hidden="true"><a href="{6}"
|
||||
class="userinfo click-card" tabIndex="-1"><img data-src="{1}"></a></div>
|
||||
<a href="{0}" class="notif-desc-wrapper media-body">
|
||||
{2}
|
||||
<div><time class="notif-when time" data-toggle="tooltip" title="{5}">{3}</time></div>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
|
||||
{{* This is the mask of the firefox logo. We set the background of #logo-img to the user icon color and apply this mask to it
|
||||
The result is a friendica logo in the user icon color.*}}
|
||||
<svg id="friendica-logo-mask" x="0px" y="0px" width="0px" height="0px" viewBox="0 0 250 250">
|
||||
|
|
11
view/theme/frio/templates/notifications/nav/notify.tpl
Normal file
11
view/theme/frio/templates/notifications/nav/notify.tpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
<li class="notification-{{if !$notify.seen}}un{{/if}}seen notif-entry">
|
||||
<div class="notif-entry-wrapper media">
|
||||
<div class="notif-photo-wrapper media-object pull-left" aria-hidden="true">
|
||||
<a href="{{$notify.contact.url}}" class="userinfo click-card" tabIndex="-1"><img data-src="{{$notify.contact.photo}}" alt=""></a>
|
||||
</div>
|
||||
<a href="{{$notify.href}}" class="notif-desc-wrapper media-body">
|
||||
{{$notify.richtext nofilter}}
|
||||
<div><time class="notif-when time" data-toggle="tooltip" title="{{$notify.localdate}}">{{$notify.ago}}</time></div>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
Loading…
Add table
Add a link
Reference in a new issue