aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/conv_item.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-19 17:49:07 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-19 17:49:07 +0100
commit949ca844c5e580484c46fb3202a29d19049bb453 (patch)
tree5814cf3d5ade649bc2f2ccae85414fa8850c052c /view/tpl/conv_item.tpl
parentf31af3c7c0e157e375a08ce562221d91406bcef9 (diff)
downloadvolse-hubzilla-949ca844c5e580484c46fb3202a29d19049bb453.tar.gz
volse-hubzilla-949ca844c5e580484c46fb3202a29d19049bb453.tar.bz2
volse-hubzilla-949ca844c5e580484c46fb3202a29d19049bb453.zip
open like-modal directly if more than 10 likes
Diffstat (limited to 'view/tpl/conv_item.tpl')
-rwxr-xr-xview/tpl/conv_item.tpl11
1 files changed, 4 insertions, 7 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index 22250781c..bcdfe3ebc 100755
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -205,13 +205,8 @@
{{foreach $item.responses as $verb=>$response}}
{{if $response.count}}
<div class="btn-group">
- <button type="button" class="btn btn-outline-secondary btn-sm wall-item-like dropdown-toggle" data-toggle="dropdown" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.count}} {{$response.button}}</button>
- {{if $response.list_part}}
- <div class="dropdown-menu">{{foreach $response.list_part as $liker}}{{$liker}}{{/foreach}}</div>
- {{else}}
- <div class="dropdown-menu">{{foreach $response.list as $liker}}{{$liker}}{{/foreach}}</div>
- {{/if}}
- {{if $response.list_part}}
+ <button type="button" class="btn btn-outline-secondary btn-sm wall-item-like dropdown-toggle"{{if $response.modal}} data-toggle="modal" data-target="#{{$verb}}Modal-{{$item.id}}"{{else}} data-toggle="dropdown"{{/if}} id="wall-item-{{$verb}}-{{$item.id}}">{{$response.count}} {{$response.button}}</button>
+ {{if $response.modal}}
<div class="modal" id="{{$verb}}Modal-{{$item.id}}">
<div class="modal-dialog">
<div class="modal-content">
@@ -228,6 +223,8 @@
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
+ {{else}}
+ <div class="dropdown-menu">{{foreach $response.list as $liker}}{{$liker}}{{/foreach}}</div>
{{/if}}
</div>
{{/if}}