aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-06-22 22:16:26 -0700
committerfriendica <info@friendica.com>2014-06-22 22:16:26 -0700
commitc4c1c37bd3388cf2be3f57bc29492e73644bc4ec (patch)
tree4870a148b2a257b8f32d867960c434008016f6c0 /view/tpl
parent535aa28526177c0a4acffc3b4f9b5c17119ad8f5 (diff)
downloadvolse-hubzilla-c4c1c37bd3388cf2be3f57bc29492e73644bc4ec.tar.gz
volse-hubzilla-c4c1c37bd3388cf2be3f57bc29492e73644bc4ec.tar.bz2
volse-hubzilla-c4c1c37bd3388cf2be3f57bc29492e73644bc4ec.zip
profile likes
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/profile_advanced.tpl20
1 files changed, 20 insertions, 0 deletions
diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl
index f25608430..0faa54637 100755
--- a/view/tpl/profile_advanced.tpl
+++ b/view/tpl/profile_advanced.tpl
@@ -1,6 +1,26 @@
<div id="profile-content-wrapper" class="generic-content-wrapper">
<h2>{{$title}}</h2>
+{{if $profile.canlike || $profile.like_count}}
+<div id="profile-like-wrapper">
+{{if $profile.canlike}}
+ <button type="button" class="btn btn-default btn-sm" onclick="doprofilelike('profile/' + '{{$profile.profile_guid}}','like'); return false;">
+ <i class="icon-thumbs-up-alt" title="{{$profile.likethis}}"></i>
+ </button>
+{{/if}}
+
+
+{{if $profile.like_count}}
+<div class="btn-group">
+<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" id="profile-like">{{$profile.like_count}} {{$profile.like_button_label}}</button>
+{{if $profile.likers}}
+<ul class="dropdown-menu" role="menu" aria-labelledby="profile-like">{{foreach $profile.likers as $liker}}<li role="presentation"><a href="{{$liker.url}}">{{$liker.name}}</a></li>{{/foreach}}</ul>
+{{/if}}
+</div>
+{{/if}}
+</div>
+{{/if}}
+
<dl id="aprofile-fullname" class="aprofile">
<dt>{{$profile.fullname.0}}</dt>
<dd>{{$profile.fullname.1}}</dd>