From 622cdeaad6b4d5dd5108cbb29648eeae0cd4be29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Mon, 9 Oct 2023 01:40:47 +0200 Subject: [PATCH] make reply-to link depending on screen-width * on small/smartphone-screens show "reply to" link above the posting and an eventual "shared by" link in a second line. * on middle/tablet-screens show "reply-to" and "shared-by" link in one line above the posting, divided by a dot. * on large screens show reply-to-link next to the time/date-link when posting was posted. the first to positions are better for users with thick fingers on smartphones. (like me) Change "in reply to" to "is reply to". Sounds better. --- src/Object/Post.php | 2 +- view/theme/frio/templates/wall_thread.tpl | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index 4df953cab..9240079fb 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -502,7 +502,7 @@ class Post $tmp_item = [ 'parentguid' => $parent_guid, - 'isreplyto' => DI::l10n()->t('in reply to %s', $parent_username), + 'isreplyto' => DI::l10n()->t('is reply to %s', $parent_username), 'template' => $this->getTemplate(), 'type' => implode('', array_slice(explode('/', $item['verb']), -1)), 'comment_firstcollapsed' => false, diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 93abcd2fd..2deefeadc 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -60,9 +60,10 @@ as the value of $top_child_total (this is done at the end of this file) {{/if}}
{{if $item.parentguid}} - {{$item.isreplyto}} - {{if $item.reshared}}{{/if}} -
+ + {{$item.isreplyto}} + {{if $item.reshared}}{{/if}} + {{/if}} {{if $item.reshared}} {{$item.reshared nofilter}} @@ -220,6 +221,13 @@ as the value of $top_child_total (this is done at the end of this file) + {{if $item.parentguid}} + + {{/if}}