diff options
author | Mario <mario@mariovavti.com> | 2025-05-15 18:39:05 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2025-05-15 18:39:05 +0000 |
commit | 757237cbb4815f340df04d6bdb9af31bb892f263 (patch) | |
tree | c0e24b80a4234ddb22e9ddb08380ec9d7c39186e /view | |
parent | 869b047fde97fe4e9605177680768c584ad0a7c3 (diff) | |
download | volse-hubzilla-757237cbb4815f340df04d6bdb9af31bb892f263.tar.gz volse-hubzilla-757237cbb4815f340df04d6bdb9af31bb892f263.tar.bz2 volse-hubzilla-757237cbb4815f340df04d6bdb9af31bb892f263.zip |
Revert "make sure sql_extra is prepared for the c table"
This reverts commit 869b047fde97fe4e9605177680768c584ad0a7c3.
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/pinned_item.tpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl index b5b5c931e..927b5ef80 100644 --- a/view/tpl/pinned_item.tpl +++ b/view/tpl/pinned_item.tpl @@ -100,11 +100,13 @@ </div> {{/if}} <div class="p-2 wall-item-tools d-flex justify-content-between"> - <div class="wall-item-tools-left hstack gap-1" id="pinned-item-tools-left-{{$id}}"> + <div class="wall-item-tools-left hstack gap-1" id="wall-item-tools-left-{{$item.id}}"> {{foreach $responses as $verb=>$response}} - <button type="button" title="{{$response.count}} {{$response.button.label}}" class="btn btn-sm btn-link{{if !$observer_activity.$verb}} link-secondary{{/if}} wall-item-{{$response.button.class}}" onclick="request({{$id}}, '{{$rawmid}}', '{{$verb}}', {{$parent}}, '{{$mid}}'); return false;" id="pinned-item-{{$verb}}-{{$id}}"> + {{if !($verb == 'comment' && (($toplevel && !$blog_mode) || $response.count == 0))}} + <button type="button" title="{{$response.count}} {{$response.button.label}}" class="btn btn-sm btn-link{{if !$observer_activity.$verb}} link-secondary{{/if}} wall-item-{{$response.button.class}}" onclick="request({{$item.id}}, '{{$item.rawmid}}', '{{$verb}}', {{$item.parent}}, '{{$item.mid}}'); return false;" id="pinned-item-{{$verb}}-{{$id}}"> <i class="bi bi-{{$response.button.icon}} generic-icons"></i>{{if $response.count}}<span style="display: inline-block; margin-top: -.25rem;" class="align-top">{{$response.count}}</span>{{/if}} </button> + {{/if}} {{/foreach}} <div class=""> <div id="like-rotator-{{$id}}" class="spinner-wrapper"> |