From c41831aff900d40c89e57dc7c1260a7d3d98323f Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 1 Feb 2024 17:05:00 +0000 Subject: fix conv_list template --- Zotlabs/Lib/ThreadItem.php | 6 +++--- view/tpl/conv_list.tpl | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 016dc5d25..07cc88581 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -373,8 +373,8 @@ class ThreadItem { if($conv->get_mode() === 'channel') $viewthread = z_root() . '/channel/' . $owner_address . '?f=&mid=' . urlencode(gen_link_id($item['mid'])); - $comment_count_txt = sprintf(tt('%d Comment', '%d Comments', $total_children), $total_children); - $list_unseen_txt = (($unseen_comments) ? sprintf(t('%d unseen'), $unseen_comments) : ''); + $comment_count_txt = ['label' => sprintf(tt('%d Comment', '%d Comments', $total_children), $total_children), 'count' => $total_children]; + $list_unseen_txt = $unseen_comments ? ['label' => sprintf(t('%d unseen'), $unseen_comments), 'count' => $unseen_comments] : []; $children = $this->get_children(); @@ -501,7 +501,7 @@ class ThreadItem { 'comment_count' => $total_children, 'comment_count_txt' => $comment_count_txt, 'list_unseen_txt' => $list_unseen_txt, - 'markseen' => t('Mark all seen'), + 'markseen' => t('Mark all comments seen'), 'responses' => $responses, 'my_responses' => $my_responses, /* diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index 43133027f..fe9167a88 100644 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -216,26 +216,26 @@
-
+
{{if $item.star && $item.star.isstarred}} -
- +
+
{{/if}} {{if $item.attachments}} -
- +
+
{{/if}} {{if $item.unseen_comments}}
-
@@ -243,14 +243,14 @@ {{if $item.responses }} {{foreach $item.responses as $verb=>$response}} {{if $response.count}} -
- +
+ {{if $response.modal}}