2019-09-04 21:01:54 +05:30
|
|
|
- page_title _("Report abuse to admin")
|
2018-12-13 13:39:08 +05:30
|
|
|
%h3.page-title
|
2019-09-04 21:01:54 +05:30
|
|
|
= _("Report abuse to admin")
|
2018-12-13 13:39:08 +05:30
|
|
|
%p
|
2019-09-04 21:01:54 +05:30
|
|
|
= _("Please use this form to report to the admin users who create spam issues, comments or behave inappropriately.")
|
2018-12-13 13:39:08 +05:30
|
|
|
%p
|
2019-09-04 21:01:54 +05:30
|
|
|
= _("A member of the abuse team will review your report as soon as possible.")
|
2015-09-11 14:41:01 +05:30
|
|
|
%hr
|
2018-11-08 19:23:39 +05:30
|
|
|
= form_for @abuse_report, html: { class: 'js-quick-submit js-requires-input'} do |f|
|
2016-06-02 11:05:42 +05:30
|
|
|
= form_errors(@abuse_report)
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
= f.hidden_field :user_id
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :user_id
|
2015-09-11 14:41:01 +05:30
|
|
|
.col-sm-10
|
|
|
|
- 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
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :message
|
2015-09-11 14:41:01 +05:30
|
|
|
.col-sm-10
|
2016-06-02 11:05:42 +05:30
|
|
|
= f.text_area :message, class: "form-control", rows: 2, required: true, value: sanitize(@ref_url)
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-text.text-muted
|
2019-02-15 15:39:39 +05:30
|
|
|
= _("Explain the problem. If appropriate, provide a link to the relevant issue or comment.")
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
.form-actions
|
2021-03-11 19:13:27 +05:30
|
|
|
= f.submit _("Send report"), class: "gl-button btn btn-success"
|