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 | |
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')
-rwxr-xr-x | view/tpl/profile_advanced.tpl | 15 | ||||
-rw-r--r-- | view/tpl/show_thing.tpl | 4 |
2 files changed, 16 insertions, 3 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> diff --git a/view/tpl/show_thing.tpl b/view/tpl/show_thing.tpl index 2a8c06076..c48912918 100644 --- a/view/tpl/show_thing.tpl +++ b/view/tpl/show_thing.tpl @@ -6,8 +6,8 @@ </div> {{if $canedit}} <div class="thing-edit-links"> -<a href="thing/edit/{{$thing.term_hash}}" title="{{$edit}}"><i class="icon-pencil thing-edit-icon"></i></a> -<a href="thing/drop/{{$thing.term_hash}}" onclick="return confirmDelete();" title="{{$delete}}" ><i class="icon-remove drop-icons"></i></a> +<a href="thing/edit/{{$thing.term_hash}}" title="{{$edit}}" class="btn btn-default" ><i class="icon-pencil thing-edit-icon"></i></a> +<a href="thing/drop/{{$thing.term_hash}}" onclick="return confirmDelete();" title="{{$delete}}" class="btn btn-default" ><i class="icon-remove drop-icons"></i></a> </div> <div class="thing-edit-links-end"></div> {{/if}} |