Add replied to visibility for admin statuses show

pull/30813/head
Emelia Smith 2024-06-24 01:30:30 +02:00
parent a0142c7132
commit f09a1ca5a1
No known key found for this signature in database
3 changed files with 11 additions and 6 deletions

View File

@ -12,12 +12,12 @@ module Admin::AccountModerationNotesHelper
)
end
def admin_account_inline_link_to(account)
def admin_account_inline_link_to(account, path: nil)
return if account.nil?
link_to(
account_inline_text(account),
admin_account_path(account.id),
path || admin_account_path(account.id),
class: class_names('inline-name-tag', suspended: suspended_account?(account)),
title: account.acct
)

View File

@ -54,10 +54,14 @@
%h3= t('admin.statuses.contents')
.status__card
- if @status.reblog?
- if @status.reblog? || @status.reply?
.status__prepend
= fa_icon('retweet fw')
= t('statuses.boosted_from_html', acct_link: admin_account_inline_link_to(@status.proper.account))
- if @status.reblog?
= fa_icon('retweet fw')
= t('statuses.boosted_from_html', acct_link: admin_account_inline_link_to(@status.proper.account))
- elsif @status.reply?
= fa_icon('reply fw')
= t('admin.statuses.replied_to_html', acct_link: admin_account_inline_link_to(@status.in_reply_to_account, path: admin_account_status_path(@status.thread.account_id, @status.in_reply_to_id)))
.status__content><
- if @status.proper.spoiler_text.blank?
= prerender_custom_emojis(status_content_format(@status.proper), @status.proper.emojis)

View File

@ -825,12 +825,13 @@ en:
open: Open post
original_status: Original post
reblogs: Reblogs
replied_to_html: Replied to %{acct_link}
status_changed: Post changed
status_title: Post by @%{name}
title: Account posts - @%{name}
trending: Trending
visibility: Visibility
view_publicly: View publicly
visibility: Visibility
with_media: With media
strikes:
actions: