From 533f39debe494dc826570ff030fcda35041d9038 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 16 Feb 2015 17:01:13 -0800 Subject: bring back like/dislike summaries on photos --- view/tpl/photo_view.tpl | 89 +++++++++++++++++-------------------------------- 1 file changed, 31 insertions(+), 58 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index 45a7cd7e5..3ece68876 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -95,70 +95,43 @@ {{/if}}
- {{if $like_count || $dislike_count}} -
-
- {{if $like_count}} -
- - {{if $like_list_part}} - - {{else}} - - {{/if}} -
+ + {{if $responses.count }} +
+
+ {{foreach $responses as $verb=>$response}} + {{if $response.count}} +
+ + {{if $response.list_part}} + + {{else}} + {{/if}} - {{if $dislike_count}} -
- - {{if $dislike_list_part}} - - {{else}} - - {{/if}} -
+ {{if $response.list_part}} + {{/if}}
- {{if $like_list_part}} - - {{/if}} - {{if $dislike_list_part}} - {{/if}} -
+ {{/foreach}}
{{/if}} - +
{{if $likebuttons}}