Display only domain of report account if remote under comment (#7574)

lolsob-rspec
Eugen Rochko 2018-05-21 17:33:20 +02:00 committed by GitHub
parent 4a0207e3ea
commit f548332935
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@
.speech-bubble
.speech-bubble__bubble= simple_format(@report.comment.presence || t('admin.reports.comment.none'))
.speech-bubble__owner
= admin_account_link_to @report.account
- if @report.account.local?
= admin_account_link_to @report.account
- else
= @report.account.domain
%br/
%time.formatted{ datetime: @report.created_at.iso8601 }
- unless @report.statuses.empty?