diff options
author | friendica <info@friendica.com> | 2014-06-23 05:19:28 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-06-23 05:19:28 -0700 |
commit | 0cfcb023118444bac29014e06a14fc1af2d0cf75 (patch) | |
tree | 5f63da84a1ee111cd68481a184c314ae5407c8fd /view/tpl/profile_advanced.tpl | |
parent | d43227a730927c88745c5c35029fd57562265e3e (diff) | |
download | volse-hubzilla-0cfcb023118444bac29014e06a14fc1af2d0cf75.tar.gz volse-hubzilla-0cfcb023118444bac29014e06a14fc1af2d0cf75.tar.bz2 volse-hubzilla-0cfcb023118444bac29014e06a14fc1af2d0cf75.zip |
ability to like things
Diffstat (limited to 'view/tpl/profile_advanced.tpl')
-rwxr-xr-x | view/tpl/profile_advanced.tpl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index 0faa54637..73033fe40 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -4,7 +4,7 @@ {{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;"> + <button type="button" class="btn btn-default btn-sm" onclick="doprofilelike('profile/' + '{{$profile.profile_guid}}','like'); return false;" title="{{$profile.likethis}}" > <i class="icon-thumbs-up-alt" title="{{$profile.likethis}}"></i> </button> {{/if}} @@ -200,6 +200,19 @@ {{foreach $items as $item}} <li>{{if $item.img}}<img src="{{$item.img}}" width="100" height="100" alt="{{$item.term}}" />{{/if}} <a href="{{$item.url}}" >{{$item.term}}</a> +{{if $profile.canlike}}<br /> +<button type="button" class="btn btn-default btn-sm" onclick="doprofilelike('thing/' + '{{$item.term_hash}}','like'); return false;" title="{{$likethis}}" > +<i class="icon-thumbs-up-alt" title="{{$likethis}}"></i> +</button> +{{/if}} +{{if $item.like_count}} +<div class="btn-group"> +<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" id="thing-like-{{$item.term_hash}}">{{$item.like_count}} {{$item.like_label}}</button> +{{if $item.likes}} +<ul class="dropdown-menu" role="menu" aria-labelledby="thing-like-{{$item.term_hash}}">{{foreach $item.likes as $liker}}<li role="presentation"><a href="{{$liker.xchan_url}}">{{$liker.xchan_name}}</a></li>{{/foreach}}</ul> +{{/if}} +</div> +{{/if}} </li> {{/foreach}} </ul> |