[frio] fix wall_thread.tpl error with unstareable items
This commit is contained in:
parent
a6776f0cc1
commit
98d52bc568
|
@ -3,7 +3,7 @@
|
||||||
It would be better if it would be done in friendica core but since core lacks this functionality
|
It would be better if it would be done in friendica core but since core lacks this functionality
|
||||||
it is done in the theme
|
it is done in the theme
|
||||||
|
|
||||||
In short: the piece of code counts the total number of children of the toplevelpost
|
In short: the piece of code counts the total number of children of the toplevelpost
|
||||||
- this are usaly all posts with thread_level = 2 - and stores it in variable $top_children_total.
|
- this are usaly all posts with thread_level = 2 - and stores it in variable $top_children_total.
|
||||||
The first time a children which hits thread_level = 2 and $top_child = 1 opens the div.
|
The first time a children which hits thread_level = 2 and $top_child = 1 opens the div.
|
||||||
|
|
||||||
|
@ -41,9 +41,9 @@ as the value of $top_child_total (this is done at the end of this file)
|
||||||
{{if $item.thread_level<3}}
|
{{if $item.thread_level<3}}
|
||||||
<div class="hide-comments-outer-wrapper">
|
<div class="hide-comments-outer-wrapper">
|
||||||
<div class="hide-comments-outer btn-link" onclick="showHideComments({{$item.id}});">
|
<div class="hide-comments-outer btn-link" onclick="showHideComments({{$item.id}});">
|
||||||
<span id="hide-comments-total-{{$item.id}}"
|
<span id="hide-comments-total-{{$item.id}}"
|
||||||
class="hide-comments-total">{{$item.num_comments}}</span>
|
class="hide-comments-total">{{$item.num_comments}}</span>
|
||||||
<span id="hide-comments-{{$item.id}}"
|
<span id="hide-comments-{{$item.id}}"
|
||||||
class="hide-comments fakelink">{{$item.hide_text}}</span>
|
class="hide-comments fakelink">{{$item.hide_text}}</span>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
|
@ -57,7 +57,9 @@ as the value of $top_child_total (this is done at the end of this file)
|
||||||
|
|
||||||
<!-- TODO => Unknow block -->
|
<!-- TODO => Unknow block -->
|
||||||
<div class="wall-item-decor" style="display:none;">
|
<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>
|
<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}}
|
{{if $item.lock}}<span class="navicon lock fakelink" onclick="lockview(event,{{$item.id}});" title="{{$item.lock}}"></span><span class="fa fa-lock"></span>{{/if}}
|
||||||
<img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
|
<img id="like-rotator-{{$item.id}}" class="like-rotator" src="images/rotator.gif" alt="{{$item.wait}}" title="{{$item.wait}}" style="display: none;" />
|
||||||
</div>
|
</div>
|
||||||
|
@ -73,7 +75,7 @@ as the value of $top_child_total (this is done at the end of this file)
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="media">
|
<div class="media">
|
||||||
{{* Put addional actions in a top-right dropdown menu *}}
|
{{* Put addional actions in a top-right dropdown menu *}}
|
||||||
|
|
||||||
<ul class="nav nav-pills preferences">
|
<ul class="nav nav-pills preferences">
|
||||||
<li><span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span></li>
|
<li><span class="wall-item-network" title="{{$item.app}}">{{$item.network_name}}</span></li>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue