Updated reports page to be more mobile friendly
• Updated: - reports page to be more mobile friendly • Added: - Helper for account elements in AccountModerationNotesHelper
This commit is contained in:
parent
3f90b0be69
commit
f1cc618fdd
|
@ -12,6 +12,17 @@ module Admin::AccountModerationNotesHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def admin_account_basic(account)
|
||||||
|
return if account.nil?
|
||||||
|
|
||||||
|
content_tag(:span, class: name_tag_classes(account), title: account.acct) do
|
||||||
|
safe_join([
|
||||||
|
image_tag(account.avatar.url, width: 15, height: 15, alt: display_name(account), class: 'avatar'),
|
||||||
|
content_tag(:span, account.acct, class: 'username'),
|
||||||
|
], ' ')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def admin_account_inline_link_to(account)
|
def admin_account_inline_link_to(account)
|
||||||
return if account.nil?
|
return if account.nil?
|
||||||
|
|
||||||
|
|
|
@ -45,14 +45,13 @@
|
||||||
%span.neutral= t('admin.accounts.no_limits_imposed')
|
%span.neutral= t('admin.accounts.no_limits_imposed')
|
||||||
.report-card__summary
|
.report-card__summary
|
||||||
- reports.each do |report|
|
- reports.each do |report|
|
||||||
.report-card__summary__item
|
= link_to admin_report_path(report), class: "report-card__summary__item", style: "text-decoration:none;text-decoration: none;padding:10px;color: #999;font-size:15px;" do
|
||||||
.report-card__summary__item__reported-by
|
.report-card__summary__item__reported-by{style: "padding: 10px 0 0 0;"}
|
||||||
- if report.account.local?
|
- if report.account.local?
|
||||||
= admin_account_link_to report.account
|
= admin_account_basic report.account
|
||||||
- else
|
- else
|
||||||
= report.account.domain
|
= report.account.domain
|
||||||
.report-card__summary__item__content{style: "max-width: calc(100% - 370px)!important;"}
|
.report-card__summary__item__content{style: "max-width: calc(100% - 370px)!important;"}
|
||||||
= link_to admin_report_path(report) do
|
|
||||||
.one-line= report.comment.presence || t('admin.reports.comment.none')
|
.one-line= report.comment.presence || t('admin.reports.comment.none')
|
||||||
|
|
||||||
%span.report-card__summary__item__content__icon{ title: t('admin.accounts.statuses') }
|
%span.report-card__summary__item__content__icon{ title: t('admin.accounts.statuses') }
|
||||||
|
@ -63,6 +62,6 @@
|
||||||
= fa_icon('camera')
|
= fa_icon('camera')
|
||||||
= report.media_attachments.count
|
= report.media_attachments.count
|
||||||
|
|
||||||
.report-card__summary__item__assigned{style: "width:220px;text-align:right;"}
|
.report-card__summary__item__assigned.hidden-sm{style: "width:220px;text-align:right;padding: 10px 0 0 0;"}
|
||||||
%time.formatted{ datetime: report.created_at.iso8601 }
|
%time.formatted{ datetime: report.created_at.iso8601 }
|
||||||
= paginate @reports
|
= paginate @reports
|
||||||
|
|
Loading…
Reference in New Issue