2023-03-04 22:38:38 +05:30
|
|
|
- page_title _("Report abuse to administrator")
|
2023-03-17 16:20:25 +05:30
|
|
|
.row
|
|
|
|
.col-lg-8
|
|
|
|
%h1.page-title.gl-font-size-h-display
|
|
|
|
= _("Report abuse to administrator")
|
|
|
|
%p
|
|
|
|
= _("Please use this form to report to the administrator users who create spam issues, comments or behave inappropriately.")
|
|
|
|
= _("A member of the abuse team will review your report as soon as possible.")
|
|
|
|
|
|
|
|
= gitlab_ui_form_for @abuse_report, html: { class: 'js-quick-submit'} do |f|
|
2023-04-23 21:23:45 +05:30
|
|
|
.row
|
|
|
|
.col-lg-8
|
|
|
|
= form_errors(@abuse_report)
|
2016-06-02 11:05:42 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
= f.hidden_field :user_id
|
2023-03-17 16:20:25 +05:30
|
|
|
= f.hidden_field :category
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2023-03-17 16:20:25 +05:30
|
|
|
.col-lg-8
|
|
|
|
= f.label :reported_user
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- name = "#{@abuse_report.user.name} (@#{@abuse_report.user.username})"
|
|
|
|
= text_field_tag :user_name, name, class: "form-control", readonly: true
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2023-03-17 16:20:25 +05:30
|
|
|
.col-lg-8
|
|
|
|
= f.label :reported_from
|
|
|
|
= f.text_field :reported_from_url, class: "form-control", readonly: true
|
2023-04-23 21:23:45 +05:30
|
|
|
#js-links-to-spam{ data: { links: Array(@abuse_report.links_to_spam) } }
|
2023-03-17 16:20:25 +05:30
|
|
|
.form-group.row
|
|
|
|
.col-lg-8
|
|
|
|
= f.label :reason
|
|
|
|
= f.text_area :message, class: "form-control", rows: 4, required: true
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-text.text-muted
|
2023-03-17 16:20:25 +05:30
|
|
|
= _("Explain why you're reporting the user.")
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2023-03-17 16:20:25 +05:30
|
|
|
= render Pajamas::ButtonComponent.new(type: :submit, variant: :confirm) do
|
|
|
|
= _('Send report')
|
|
|
|
= render Pajamas::ButtonComponent.new(href: @abuse_report.reported_from_url, button_options: { class: 'gl-ml-3' }) do
|
|
|
|
= _('Cancel')
|