From 09931b71247c2261371a5a40b38a2127f79f344d Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 May 2016 23:42:22 +0200 Subject: [PATCH 1/2] frio: Some small template clean up --- view/theme/frio/templates/wall_thread.tpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index ceef9230d..b2e10a10a 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -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 *}} {{if $item.vote}} -
{{if $item.vote.like}}  {{$item.vote.like.1}} {{/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}} -
{{/if}} {{* Butten to open the comment text field *}} {{if $item.comment}} -
-  {{$item.switchcomment}} -
+  {{$item.switchcomment}} {{/if}} {{* Button for sharing the item *}} From ecb67feca1bbb331dc501ec7ca0e7e03e0ead32d Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 30 May 2016 05:21:57 +0200 Subject: [PATCH 2/2] 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}} {{/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}}