summaryrefslogtreecommitdiff
path: root/app/views/admin/abuse_reports/index.html.haml
blob: daa766429e0f012a7906871b9ba2280450b82423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- page_title _('Abuse Reports')

%h3.page-title= _('Abuse Reports')

.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' }})

.abuse-reports
  - if @abuse_reports.present?
    .table-holder
      %table.table.responsive-table
        %thead.d-none.d-md-table-header-group
          %tr
            %th User
            %th Reported by
            %th.wide Message
            %th Action
        = render @abuse_reports
    = paginate @abuse_reports, theme: 'gitlab'
  - else
    .empty-state
      .text-center
        %h4 There are no abuse reports! #{emoji_icon('tada')}