Add admin area view partials for each record type (#2700)
parent
2128682162
commit
b5eec34230
@ -0,0 +1,23 @@ |
||||
%tr |
||||
%td.username |
||||
= account.username |
||||
%td.domain |
||||
- unless account.local? |
||||
= link_to account.domain, admin_accounts_path(by_domain: account.domain) |
||||
%td.confirmed |
||||
- if account.local? |
||||
- if account.user_confirmed? |
||||
%i.fa.fa-check |
||||
- else |
||||
%i.fa.fa-times |
||||
%td.subscribed |
||||
- if account.local? |
||||
= t('admin.accounts.location.local') |
||||
- elsif account.subscribed? |
||||
%i.fa.fa-check |
||||
- else |
||||
%i.fa.fa-times |
||||
%td |
||||
= table_link_to 'circle', t('admin.accounts.web'), web_path("accounts/#{account.id}") |
||||
= table_link_to 'globe', t('admin.accounts.public'), TagManager.instance.url_for(account) |
||||
= table_link_to 'pencil', t('admin.accounts.edit'), admin_account_path(account.id) |
@ -0,0 +1,10 @@ |
||||
%tr |
||||
%td.domain |
||||
%samp= domain_block.domain |
||||
%td.severity |
||||
= t("admin.domain_blocks.severities.#{domain_block.severity}") |
||||
%td.reject_media |
||||
- if domain_block.reject_media? || domain_block.suspend? |
||||
%i.fa.fa-check |
||||
%td |
||||
= table_link_to 'undo', t('admin.domain_blocks.undo'), admin_domain_block_path(domain_block) |
@ -0,0 +1,5 @@ |
||||
%tr |
||||
%td.domain |
||||
= instance.domain |
||||
%td.count |
||||
= instance.accounts_count |
@ -0,0 +1,16 @@ |
||||
%tr |
||||
%td |
||||
%samp= subscription.account.acct |
||||
%td |
||||
%samp= subscription.callback_url |
||||
%td |
||||
- if subscription.confirmed? |
||||
%i.fa.fa-check |
||||
%td{ style: "color: #{subscription.expired? ? 'red' : 'inherit'};" } |
||||
= precede subscription.expired? ? '-' : '' do |
||||
= time_ago_in_words(subscription.expires_at) |
||||
%td |
||||
- if subscription.last_successful_delivery_at? |
||||
= l subscription.last_successful_delivery_at |
||||
- else |
||||
%i.fa.fa-times |
@ -0,0 +1,21 @@ |
||||
%tr |
||||
%td.id |
||||
= "##{report.id}" |
||||
%td.target |
||||
= link_to report.target_account.acct, admin_account_path(report.target_account.id) |
||||
%td.reporter |
||||
= link_to report.account.acct, admin_account_path(report.account.id) |
||||
%td.comment |
||||
%span{title: report.comment} |
||||
= truncate(report.comment, length: 30, separator: ' ') |
||||
%td.stats |
||||
- unless report.statuses.empty? |
||||
%span{title: t('admin.accounts.statuses')} |
||||
= fa_icon('comment') |
||||
= report.statuses.count |
||||
- unless report.media_attachments.empty? |
||||
%span{title: t('admin.accounts.media_attachments')} |
||||
= fa_icon('camera') |
||||
= report.media_attachments.count |
||||
%td |
||||
= table_link_to 'circle', t('admin.reports.view'), admin_report_path(report) |
Loading…
Reference in new issue