]> cat aescling's git repositories - mastodon.git/commitdiff
Display a double reply arrow on public pages for toots that are replies (#9808)
authorThibG <thib@sitedethib.com>
Mon, 14 Jan 2019 16:29:04 +0000 (17:29 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 14 Jan 2019 16:29:04 +0000 (17:29 +0100)
app/views/stream_entries/_detailed_status.html.haml
app/views/stream_entries/_simple_status.html.haml

index 872a02ea434172d1d9420725d8f0b252356a1d1c..18265e1107126e25d4b03a5a460e2e04b0349ff7 100644 (file)
         = link_to status.application.name, status.application.website, class: 'detailed-status__application', target: '_blank', rel: 'noopener'
       ·
     = link_to remote_interaction_path(status, type: :reply), class: 'modal-button detailed-status__link' do
-      = fa_icon('reply')
+      - if status.in_reply_to_id.nil?
+        = fa_icon('reply')
+      - else
+        = fa_icon('reply-all')
       %span.detailed-status__reblogs>= number_to_human status.replies_count, strip_insignificant_zeros: true
       = " "
     ·
index 60baa298e3d2ccf1eb0506ae43785504d0fb7aa0..b0b6e80c89bf7176ce307dedba60cda16f2a661d 100644 (file)
   .status__action-bar
     .status__action-bar__counter
       = link_to remote_interaction_path(status, type: :reply), class: 'status__action-bar-button icon-button modal-button', style: 'font-size: 18px; width: 23.1429px; height: 23.1429px; line-height: 23.15px;' do
-        = fa_icon 'reply fw'
+        - if status.in_reply_to_id.nil?
+          = fa_icon 'reply fw'
+        - else
+          = fa_icon 'reply-all fw'
       .status__action-bar__counter__label= obscured_counter status.replies_count
     = link_to remote_interaction_path(status, type: :reblog), class: 'status__action-bar-button icon-button modal-button', style: 'font-size: 18px; width: 23.1429px; height: 23.1429px; line-height: 23.15px;' do
       - if status.public_visibility? || status.unlisted_visibility?