]> git.mxchange.org Git - friendica.git/commitdiff
Improve post direction display
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 3 Sep 2020 14:19:17 +0000 (10:19 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 3 Sep 2020 19:45:53 +0000 (15:45 -0400)
- [frio] Change icon for commented direction
- Update English translation string for commented direction

include/conversation.php
view/theme/frio/templates/sub/direction.tpl
view/theme/vier/templates/sub/direction.tpl

index c668e53d9da656d3549c6328d54f7c86f6d0510f..6fcdd6581281a55955fc53b1ae6185a28772c103 100644 (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'])
index 609a5105b26b87cd891bb26539a771c30690c122..4113c9beeda793b7c9e8a1d128fa1670e0210ce1 100644 (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}}
index f884d51c262ac97691b7928a934371216da42e8f..08f40c3a3b34abba379d7d602b35a4e1eea1155c 100644 (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}}