as the value of $top_child_total (this is done at the end of this file)
*}}
{{if $item.thread_level==1}}
- {{assign var="top_child_total" count($item.children)}}
- {{assign var="top_child_nr" 0}}
+ {{assign var="top_child_total" value=count($item.children)}}
+ {{assign var="top_child_nr" value=0}}
{{/if}}
{{if $item.thread_level==2}}
{{assign var="top_child_nr" value=$top_child_nr+1 scope=parent}}
{{/if}}
{{/if}}
-<!-- TODO => Unknow block -->
+{{* TODO => Unknown block *}}
<div class="wall-item-decor" style="display:none;">
{{if $item.star}}
<span class="icon s22 star {{$item.isstarred}}" id="starred-{{$item.id}}" title="{{$item.star.starred}}">{{$item.star.starred}}</span>
{{/if}}
{{if $item.lock}}<span class="navicon lock fakelink" onclick="lockview(event,{{$item.id}});" title="{{$item.lock}}"></span><span class="fa fa-lock"></span>{{/if}}
</div>
-<!-- ./TODO => Unknow block -->
-
+{{* /TODO => Unknown block *}}
{{* Use a different div container in dependence max thread-level = 7 *}}
<div class="additional-info text-muted">
<div id="wall-item-ago-{{$item.id}}" class="wall-item-ago">
- <small><a href="{{$item.plink.orig}}"><span class="time" title="{{$item.localtime}}" data-toggle="tooltip"><time class="dt-published" datetime="{{$item.localtime}}">{{$item.ago}}</time></span></a></small>
+ <small>
+ <a href="{{$item.plink.orig}}">
+ <span class="time" title="{{$item.localtime}}" data-toggle="tooltip">
+ <time class="dt-published" datetime="{{$item.localtime}}">{{$item.ago}}</time>
+ </span>
+ </a>
+ {{if $item.owner_self}}
+ {{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
+ {{/if}}
+ </small>
</div>
{{if $item.location}}
<h5 class="media-heading">
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo"><span>{{$item.name}}</span></a>
<p class="text-muted">
- <small><a class="time" href="{{$item.plink.orig}}"><span class="wall-item-ago">{{$item.ago}}</span></a> {{if $item.location}} — ({{$item.location nofilter}}){{/if}}</small>
+ <small>
+ <a class="time" href="{{$item.plink.orig}}"><span class="wall-item-ago">{{$item.ago}}</span></a>
+ {{if $item.location}} — ({{$item.location nofilter}}){{/if}}
+ {{if $item.owner_self}}
+ {{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
+ {{/if}}
+ </small>
</p>
</h5>
</div>
<h5 class="media-heading">
<a href="{{$item.profile_url}}" title="{{$item.linktitle}}" class="wall-item-name-link userinfo"><span class="fakelink">{{$item.name}}</span></a>
<span class="text-muted">
- <small><a class="time" href="{{$item.plink.orig}}" title="{{$item.localtime}}" data-toggle="tooltip">{{$item.ago}}</a> {{if $item.location}} — ({{$item.location nofilter}}){{/if}}</small>
+ <small>
+ <a class="time" href="{{$item.plink.orig}}" title="{{$item.localtime}}" data-toggle="tooltip">{{$item.ago}}</a>
+ {{if $item.location}} — ({{$item.location nofilter}}){{/if}}
+ {{if $item.owner_self}}
+ {{include file="sub/delivery_count.tpl" delivery=$item.delivery}}
+ {{/if}}
+ </small>
</span>
</h5>
</div>
{{/if}}
{{foreach $item.folders as $cat}}
- <span class="folder label btn-danger sm"><span class="p-category">{{$cat.name}}</span></a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
+ <span class="folder label btn-danger sm p-category">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
{{/foreach}}
{{foreach $item.categories as $cat}}
- <span class="category label btn-success sm"><span class="p-category">{{$cat.name}}</span></a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
+ <span class="category label btn-success sm p-category">{{$cat.name}}{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
{{/foreach}}
</div>
{{if $item.edited}}<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>{{/if}}