From 730a5c5725cd82e51ede61d5d5df316b1221aa3b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 3 Sep 2020 10:19:17 -0400 Subject: [PATCH] Improve post direction display - [frio] Change icon for commented direction - Update English translation string for commented direction --- include/conversation.php | 2 +- view/theme/frio/templates/sub/direction.tpl | 2 ++ view/theme/vier/templates/sub/direction.tpl | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/conversation.php b/include/conversation.php index c668e53d9d..6fcdd65812 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -725,7 +725,7 @@ function conversation_fetch_comments($thread_items, $pinned) { if (!empty($parentlines) && empty($direction) && ($row['gravity'] == GRAVITY_COMMENT) && Contact::isSharing($row['author-id'], $row['uid'])) { - $direction = ['direction' => 2, 'title' => DI::l10n()->t('%s commented this.', $row['author-name'])]; + $direction = ['direction' => 5, 'title' => DI::l10n()->t('%s commented on this.', $row['author-name'])]; } if (($row['gravity'] == GRAVITY_PARENT) && !$row['origin'] && ($row['author-id'] == $row['owner-id']) diff --git a/view/theme/frio/templates/sub/direction.tpl b/view/theme/frio/templates/sub/direction.tpl index 609a5105b2..4113c9beed 100644 --- a/view/theme/frio/templates/sub/direction.tpl +++ b/view/theme/frio/templates/sub/direction.tpl @@ -9,6 +9,8 @@ {{elseif $direction.direction == 4}} + {{elseif $direction.direction == 5}} + {{/if}} {{/if}} diff --git a/view/theme/vier/templates/sub/direction.tpl b/view/theme/vier/templates/sub/direction.tpl index f884d51c26..08f40c3a3b 100644 --- a/view/theme/vier/templates/sub/direction.tpl +++ b/view/theme/vier/templates/sub/direction.tpl @@ -9,6 +9,8 @@ {{elseif $direction.direction == 4}} + {{elseif $direction.direction == 5}} + {{/if}} {{/if}}