2019-11-11 18:06:27 +00:00
|
|
|
- page_title _('Abuse Reports')
|
|
|
|
|
2022-06-08 21:08:52 +00:00
|
|
|
%h1.page-title.gl-font-size-h-display= _('Abuse Reports')
|
2019-11-11 18:06:27 +00:00
|
|
|
|
|
|
|
.row-content-block.second-block
|
|
|
|
= form_tag admin_abuse_reports_path, method: :get, class: 'filter-form' do
|
|
|
|
.filter-categories.flex-fill
|
|
|
|
.filter-item.inline
|
|
|
|
= dropdown_tag(user_dropdown_label(params[:user_id], 'User'),
|
|
|
|
options: { toggle_class: 'js-filter-submit js-user-search',
|
|
|
|
title: _('Filter by user'), filter: true, filterInput: 'input#user-search',
|
|
|
|
dropdown_class: 'dropdown-menu-selectable dropdown-menu-user js-filter-submit',
|
|
|
|
placeholder: _('Search users'),
|
|
|
|
data: { current_user: true, field_name: 'user_id' }})
|
|
|
|
|
2016-07-22 18:31:22 +00:00
|
|
|
.abuse-reports
|
|
|
|
- if @abuse_reports.present?
|
2016-08-08 13:04:18 +00:00
|
|
|
.table-holder
|
2016-12-05 15:59:30 +00:00
|
|
|
%table.table.responsive-table
|
2020-10-12 00:08:43 +00:00
|
|
|
%thead.d-none.d-md-table-header-group
|
2016-08-08 13:04:18 +00:00
|
|
|
%tr
|
2021-04-01 18:13:56 +00:00
|
|
|
%th= _('User')
|
|
|
|
%th= _('Reported by')
|
|
|
|
%th.wide= _('Message')
|
|
|
|
%th= _('Action')
|
2016-08-08 13:04:18 +00:00
|
|
|
= render @abuse_reports
|
2017-02-14 16:16:24 +00:00
|
|
|
= paginate @abuse_reports, theme: 'gitlab'
|
2016-07-22 18:31:22 +00:00
|
|
|
- else
|
2016-12-05 15:59:30 +00:00
|
|
|
.empty-state
|
|
|
|
.text-center
|
2021-04-12 18:12:15 +00:00
|
|
|
%h4= _("There are no abuse reports!")
|
|
|
|
%h3= emoji_icon('tada')
|