From ecb67feca1bbb331dc501ec7ca0e7e03e0ead32d Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 30 May 2016 05:21:57 +0200 Subject: [PATCH] Adapting the changes to search_item.tpl as well --- view/theme/frio/templates/search_item.tpl | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/view/theme/frio/templates/search_item.tpl b/view/theme/frio/templates/search_item.tpl index 1f2b76170..9722a6e1d 100644 --- a/view/theme/frio/templates/search_item.tpl +++ b/view/theme/frio/templates/search_item.tpl @@ -169,29 +169,34 @@ {{* Buttons for like and dislike *}} {{if $item.vote}} -
+ {{if $item.vote.like}} {{$item.vote.like.0}} + {{/if}} + + {{if $item.vote.like AND $item.vote.dislike}} +  •  + {{/if}} {{if $item.vote.dislike}} -  •  {{$item.vote.dislike.0}} {{/if}} - {{if $item.comment}} • {{/if}} -
+ {{if ($item.vote.like OR $item.vote.dislike) AND $item.comment}} +  •  + {{/if}} {{/if}} {{* Butten to open the comment text field *}} {{if $item.comment}} -
- {{$item.switchcomment}} -
+ {{$item.switchcomment}} {{/if}} {{* Button for sharing the item *}} {{if $item.vote}} - {{if $item.vote.share}} + {{if ($item.vote.like OR $item.vote.dislike OR $item.comment) AND $item.vote.share}}  •  + {{/if}} + {{if $item.vote.share}}  {{$item.vote.share.0}} {{/if}} {{/if}}