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