Merge pull request #2546 from annando/1605-frio-template-clean
frio: Some small template clean up
This commit is contained in:
commit
f4c0c18b16
|
@ -169,29 +169,34 @@
|
||||||
|
|
||||||
{{* Buttons for like and dislike *}}
|
{{* Buttons for like and dislike *}}
|
||||||
{{if $item.vote}}
|
{{if $item.vote}}
|
||||||
<div class="vote-like pull-left">
|
{{if $item.vote.like}}
|
||||||
<a role="button" href="#" class="button-likes" id="like-{{$item.id}}" title="{{$item.vote.like.0}}" onclick="dolike({{$item.id}},'like'); return false;">{{$item.vote.like.0}}</a>
|
<a role="button" href="#" class="button-likes" id="like-{{$item.id}}" title="{{$item.vote.like.0}}" onclick="dolike({{$item.id}},'like'); return false;">{{$item.vote.like.0}}</a>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $item.vote.like AND $item.vote.dislike}}
|
||||||
|
<span role="presentation" class="separator"> • </span>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{if $item.vote.dislike}}
|
{{if $item.vote.dislike}}
|
||||||
<span role="presentation" class="separator"> • </span>
|
|
||||||
<a role="button" href="#" class="button-likes" id="dislike-{{$item.id}}" title="{{$item.vote.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false;">{{$item.vote.dislike.0}}</a>
|
<a role="button" href="#" class="button-likes" id="dislike-{{$item.id}}" title="{{$item.vote.dislike.0}}" onclick="dolike({{$item.id}},'dislike'); return false;">{{$item.vote.dislike.0}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{if $item.comment}}<span role="presentation" class="separator"> • </span>{{/if}}
|
{{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}}
|
||||||
</div>
|
<span role="presentation" class="separator"> • </span>
|
||||||
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{* Butten to open the comment text field *}}
|
{{* Butten to open the comment text field *}}
|
||||||
{{if $item.comment}}
|
{{if $item.comment}}
|
||||||
<div id="button-reply" class="pull-left">
|
<a role="button" class="" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});">{{$item.switchcomment}} </a>
|
||||||
<a role="button" class="" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});">{{$item.switchcomment}} </a>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{* Button for sharing the item *}}
|
{{* Button for sharing the item *}}
|
||||||
{{if $item.vote}}
|
{{if $item.vote}}
|
||||||
{{if $item.vote.share}}
|
{{if ($item.vote.like OR $item.vote.dislike OR $item.comment) AND $item.vote.share}}
|
||||||
<span role="presentation" class="separator"> • </span>
|
<span role="presentation" class="separator"> • </span>
|
||||||
|
{{/if}}
|
||||||
|
{{if $item.vote.share}}
|
||||||
<a role="button" href="#" class="" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false;"><i class="fa fa-retweet"></i> {{$item.vote.share.0}}</a>
|
<a role="button" href="#" class="" id="share-{{$item.id}}" title="{{$item.vote.share.0}}" onclick="jotShare({{$item.id}}); return false;"><i class="fa fa-retweet"></i> {{$item.vote.share.0}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -284,7 +284,6 @@ as the value of $top_child_total (this is done at the end of this file)
|
||||||
|
|
||||||
{{* Buttons for like and dislike *}}
|
{{* Buttons for like and dislike *}}
|
||||||
{{if $item.vote}}
|
{{if $item.vote}}
|
||||||
<div class="vote-like pull-left">
|
|
||||||
{{if $item.vote.like}}
|
{{if $item.vote.like}}
|
||||||
<a role="button" class="button-likes" id="like-{{$item.id}}" title="{{$item.vote.like.1}}" onclick="dolike({{$item.id}},'like'); return false;"><i class="fa fa-thumbs-up"></i> {{$item.vote.like.1}}</a>
|
<a role="button" class="button-likes" id="like-{{$item.id}}" title="{{$item.vote.like.1}}" onclick="dolike({{$item.id}},'like'); return false;"><i class="fa fa-thumbs-up"></i> {{$item.vote.like.1}}</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -300,14 +299,11 @@ as the value of $top_child_total (this is done at the end of this file)
|
||||||
{{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}}
|
{{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}}
|
||||||
<span role="presentation" class="separator"> • </span>
|
<span role="presentation" class="separator"> • </span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{* Butten to open the comment text field *}}
|
{{* Butten to open the comment text field *}}
|
||||||
{{if $item.comment}}
|
{{if $item.comment}}
|
||||||
<div id="button-reply" class="pull-left">
|
<a role="button" class="button-comments" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" {{if $item.thread_level != 1}}onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" {{else}} onclick="showHide('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"{{/if}}><i class="fa fa-commenting"></i> {{$item.switchcomment}}</a>
|
||||||
<a role="button" class="button-comments" id="comment-{{$item.id}}" title="{{$item.switchcomment}}" {{if $item.thread_level != 1}}onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});" {{else}} onclick="showHide('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"{{/if}}><i class="fa fa-commenting"></i> {{$item.switchcomment}}</a>
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{* Button for sharing the item *}}
|
{{* Button for sharing the item *}}
|
||||||
|
|
Loading…
Reference in a new issue