2018-09-18 04:42:11 -04:00
- breadcrumb_title _("Reporting")
- page_title _("Reporting")
2018-09-04 14:06:57 -04:00
- @content_class = "limit-container-width" unless fluid_layout
2018-09-19 06:57:57 -04:00
%section.settings.as-spam.no-animate#js-spam-settings{ class: ('expanded' if expanded_by_default?) }
2018-09-04 14:06:57 -04:00
.settings-header
%h4
= _('Spam and Anti-bot Protection')
2021-01-20 04:10:52 -05:00
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2018-09-19 06:57:57 -04:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-09-04 14:06:57 -04:00
%p
2019-07-18 04:27:02 -04:00
- recaptcha_v2_link_url = 'https://developers.google.com/recaptcha/docs/versions'
- recaptcha_v2_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: recaptcha_v2_link_url }
2021-01-12 10:10:37 -05:00
= _('Enable reCAPTCHA, Invisible Captcha, Akismet and set IP limits. For reCAPTCHA, we currently only support %{recaptcha_v2_link_start}v2%{recaptcha_v2_link_end}').html_safe % { recaptcha_v2_link_start: recaptcha_v2_link_start, recaptcha_v2_link_end: '</a>'.html_safe }
2018-09-04 14:06:57 -04:00
.settings-content
= render 'spam'
2018-09-19 06:57:57 -04:00
%section.settings.as-abuse.no-animate#js-abuse-settings{ class: ('expanded' if expanded_by_default?) }
2018-09-04 14:06:57 -04:00
.settings-header
%h4
= _('Abuse reports')
2021-01-20 04:10:52 -05:00
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2018-09-19 06:57:57 -04:00
= expanded_by_default? ? _('Collapse') : _('Expand')
2018-09-04 14:06:57 -04:00
%p
= _('Set notification email for abuse reports.')
.settings-content
= render 'abuse'