aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2025-07-13 09:47:38 +0000
committerMario <mario@mariovavti.com>2025-07-13 09:47:38 +0000
commita55bba7aa8b795eb56798c3d63e292738c6e38a1 (patch)
treeb4e084f448f54434342f668efb78dbd74b0a0092 /view
parent2958ea8c89e317052b273600c4b33d5929bf1176 (diff)
downloadvolse-hubzilla-a55bba7aa8b795eb56798c3d63e292738c6e38a1.tar.gz
volse-hubzilla-a55bba7aa8b795eb56798c3d63e292738c6e38a1.tar.bz2
volse-hubzilla-a55bba7aa8b795eb56798c3d63e292738c6e38a1.zip
fix blog mode if threaded view is disabled
Diffstat (limited to 'view')
-rw-r--r--view/tpl/conv_item.tpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index c97c53c41..4abb34a31 100644
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -111,10 +111,16 @@
<div class="wall-item-tools-left hstack gap-1" id="wall-item-tools-left-{{$item.id}}">
{{foreach $item.responses as $verb=>$response}}
{{if !($verb == 'comment' && (($item.toplevel && !$item.blog_mode) || $response.count == 0))}}
+ {{if !$item.threaded && $item.blog_mode && $verb == 'comment'}}
+ <a href="{{$item.viewthread}}" target="_thread" title="{{$response.count}} {{$response.button.label}}" class="btn btn-sm btn-link{{if !$item.observer_activity.$verb}} link-secondary{{/if}} wall-item-{{$response.button.class}}" id="wall-item-{{$verb}}-{{$item.id}}">
+ <i class="bi bi-chat generic-icons"></i>{{if $response.count}}<span style="display: inline-block; margin-top: -.25rem;" class="align-top">{{$response.count}}</span>{{/if}}
+ </a>
+ {{else}}
<button type="button" title="{{$response.count}} {{$response.button.label}}" class="btn btn-sm btn-link{{if !$item.observer_activity.$verb}} link-secondary{{/if}} wall-item-reaction wall-item-{{$response.button.class}}" id="wall-item-{{$verb}}-{{$item.id}}" data-item-id="{{$item.id}}" data-item-mid="{{$item.rawmid}}" data-item-verb="{{$verb}}" data-item-parent="{{$item.parent}}" data-item-uuid="{{$item.mid}}" data-item-reaction-count="{{$response.count}}">
<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}}
+ {{/if}}
{{/foreach}}
{{if $item.toplevel && $item.emojis && $item.reactions}}
<div class="">