2019-06-06 10:05:42 +00:00
|
|
|
- page_title _("Report abuse to admin")
|
2022-06-08 21:08:52 +00:00
|
|
|
%h1.page-title.gl-font-size-h-display
|
2019-06-06 10:05:42 +00:00
|
|
|
= _("Report abuse to admin")
|
2018-11-07 11:24:36 +00:00
|
|
|
%p
|
2019-06-06 10:05:42 +00:00
|
|
|
= _("Please use this form to report to the admin users who create spam issues, comments or behave inappropriately.")
|
2018-11-07 11:24:36 +00:00
|
|
|
%p
|
2019-06-06 10:05:42 +00:00
|
|
|
= _("A member of the abuse team will review your report as soon as possible.")
|
2015-08-06 12:03:27 +00:00
|
|
|
%hr
|
2018-04-12 20:11:22 +00:00
|
|
|
= form_for @abuse_report, html: { class: 'js-quick-submit js-requires-input'} do |f|
|
2022-06-13 12:08:29 +00:00
|
|
|
= form_errors(@abuse_report, pajamas_alert: true)
|
2016-04-05 01:25:38 +00:00
|
|
|
|
2015-08-06 12:03:27 +00:00
|
|
|
= f.hidden_field :user_id
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :user_id
|
2015-08-06 12:03:27 +00:00
|
|
|
.col-sm-10
|
2015-08-06 13:13:47 +00:00
|
|
|
- name = "#{@abuse_report.user.name} (@#{@abuse_report.user.username})"
|
|
|
|
= text_field_tag :user_name, name, class: "form-control", readonly: true
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :message
|
2015-08-06 12:03:27 +00:00
|
|
|
.col-sm-10
|
2016-02-12 21:28:53 +00:00
|
|
|
= f.text_area :message, class: "form-control", rows: 2, required: true, value: sanitize(@ref_url)
|
2018-04-11 18:26:37 +00:00
|
|
|
.form-text.text-muted
|
2018-11-19 20:20:09 +00:00
|
|
|
= _("Explain the problem. If appropriate, provide a link to the relevant issue or comment.")
|
2015-08-06 12:03:27 +00:00
|
|
|
|
|
|
|
.form-actions
|
2021-03-05 03:08:54 +00:00
|
|
|
= f.submit _("Send report"), class: "gl-button btn btn-confirm"
|