dfcf4cf5f1
Add method to store session ids by ip Add new specs for storing session ids Add cleaning up records after login Add retrieving anonymous sessions Add login recaptcha setting Add new setting to sessions controller Add conditions for showing captcha Add sessions controller specs Add admin settings specs for login protection Add new settings to api Add stub to devise spec Add new translation key Add cr remarks Rename class call Add cr remarks Change if-clause for consistency Add cr remarks Add code review remarks Refactor AnonymousSession class Add changelog entry Move AnonymousSession class to lib Move store unauthenticated sessions to sessions controller Move link to recaptcha info Regenerate text file Improve copy on the spam page Change action filter for storing anonymous sessions Fix rubocop offences Add code review remarks
27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
- breadcrumb_title _("Reporting")
|
|
- page_title _("Reporting")
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
|
|
|
%section.settings.as-spam.no-animate#js-spam-settings{ class: ('expanded' if expanded_by_default?) }
|
|
.settings-header
|
|
%h4
|
|
= _('Spam and Anti-bot Protection')
|
|
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
|
|
= expanded_by_default? ? _('Collapse') : _('Expand')
|
|
%p
|
|
- 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 }
|
|
= _('Enable reCAPTCHA or 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 }
|
|
.settings-content
|
|
= render 'spam'
|
|
|
|
%section.settings.as-abuse.no-animate#js-abuse-settings{ class: ('expanded' if expanded_by_default?) }
|
|
.settings-header
|
|
%h4
|
|
= _('Abuse reports')
|
|
%button.btn.btn-default.js-settings-toggle{ type: 'button' }
|
|
= expanded_by_default? ? _('Collapse') : _('Expand')
|
|
%p
|
|
= _('Set notification email for abuse reports.')
|
|
.settings-content
|
|
= render 'abuse'
|