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:
parent
a0142c7132
commit
f09a1ca5a1
3 changed files with 11 additions and 6 deletions
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue