Improve report layout (#7188)
* Use table for statuses in report * Display reported account and reporter in the same table * Split accounts and general report info into two tables again * Redesign report statuses table, notes, merge notes and action log * Remove unused translations * Fix code style issue * Fix code style issue * Fix code style issue
This commit is contained in:
parent
1663368724
commit
a9c440637c
55 changed files with 380 additions and 249 deletions
19
app/views/admin/reports/_account.html.haml
Normal file
19
app/views/admin/reports/_account.html.haml
Normal file
|
@ -0,0 +1,19 @@
|
|||
- size ||= 36
|
||||
|
||||
.account.compact
|
||||
.account__wrapper
|
||||
- if account.nil?
|
||||
.account__display-name
|
||||
.account__avatar-wrapper
|
||||
.account__avatar{ style: "background-image: url(#{full_asset_url('avatars/original/missing.png', skip_pipeline: true)}); width: #{size}px; height: #{size}px; background-size: #{size}px #{size}px" }
|
||||
%span.display-name
|
||||
%strong= t 'about.contact_missing'
|
||||
%span.display-name__account= t 'about.contact_unavailable'
|
||||
- else
|
||||
= link_to TagManager.instance.url_for(account), class: 'account__display-name' do
|
||||
.account__avatar-wrapper
|
||||
.account__avatar{ style: "background-image: url(#{account.avatar.url}); width: #{size}px; height: #{size}px; background-size: #{size}px #{size}px" }
|
||||
%span.display-name
|
||||
%bdi
|
||||
%strong.display-name__html.emojify= display_name(account)
|
||||
%span.display-name__account @#{account.acct}
|
Loading…
Add table
Add a link
Reference in a new issue