Improve post direction display

- [frio] Change icon for commented direction
- Update English translation string for commented direction
This commit is contained in:
Hypolite Petovan 2020-09-03 10:19:17 -04:00
parent 3d455645e7
commit 730a5c5725
3 changed files with 5 additions and 1 deletions

View File

@ -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'])

View File

@ -9,6 +9,8 @@
<i class="fa fa-share-alt" aria-hidden="true" title="{{$direction.title}}"></i>
{{elseif $direction.direction == 4}}
<i class="fa fa-hashtag" aria-hidden="true" title="{{$direction.title}}"></i>
{{elseif $direction.direction == 5}}
<i class="fa fa-comment-o" aria-hidden="true" title="{{$direction.title}}"></i>
{{/if}}
</span>
{{/if}}

View File

@ -9,6 +9,8 @@
<i class="icon-share" aria-hidden="true" title="{{$direction.title}}"></i>
{{elseif $direction.direction == 4}}
<i class="icon-tag" aria-hidden="true" title="{{$direction.title}}"></i>
{{elseif $direction.direction == 5}}
<i class="icon-commenting" aria-hidden="true" title="{{$direction.title}}"></i>
{{/if}}
</span>
{{/if}}