1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Add replied to visibility for admin statuses show

This commit is contained in:
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 end
def admin_account_inline_link_to(account) def admin_account_inline_link_to(account, path: nil)
return if account.nil? return if account.nil?
link_to( link_to(
account_inline_text(account), 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)), class: class_names('inline-name-tag', suspended: suspended_account?(account)),
title: account.acct title: account.acct
) )

View file

@ -54,10 +54,14 @@
%h3= t('admin.statuses.contents') %h3= t('admin.statuses.contents')
.status__card .status__card
- if @status.reblog? - if @status.reblog? || @status.reply?
.status__prepend .status__prepend
= fa_icon('retweet fw') - if @status.reblog?
= t('statuses.boosted_from_html', acct_link: admin_account_inline_link_to(@status.proper.account)) = 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>< .status__content><
- if @status.proper.spoiler_text.blank? - if @status.proper.spoiler_text.blank?
= prerender_custom_emojis(status_content_format(@status.proper), @status.proper.emojis) = prerender_custom_emojis(status_content_format(@status.proper), @status.proper.emojis)

View file

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