about summary refs log tree commit diff
path: root/app/views/admin/report_notes/_report_note.html.haml
blob: f9d57c2ae342dd4fd6d5d17cfa5254a0c000b3a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.report-notes__item
  = image_tag report_note.account.avatar.url, class: 'report-notes__item__avatar'

  .report-notes__item__header
    %span.username
      = link_to report_note.account.username, admin_account_path(report_note.account_id)
    %time{ datetime: report_note.created_at.iso8601, title: l(report_note.created_at) }
      - if report_note.created_at.today?
        = t('admin.report_notes.today_at', time: l(report_note.created_at, format: :time))
      - else
        = l report_note.created_at.to_date

  .report-notes__item__content
    = simple_format(h(report_note.content))

  - if can?(:destroy, report_note)
    .report-notes__item__actions
      = table_link_to 'trash', t('admin.reports.notes.delete'), admin_report_note_path(report_note), method: :delete