{% if hasPermission('ZikulaAdminModule::', '::', 'ACCESS_ADMIN') %}
    {% if not security.scactive %}
        <div id="securityanalyzer" class="alert alert-warning">
            <div class="row">
                <div class="col-md-12">
                    <i class="close" data-dismiss="alert">&times;</i>
                    <a class="text-warning" data-toggle="collapse" href="#securitysettings_full" aria-expanded="false"
                       aria-controls="securitysettings_full">
                        <strong><i class="fas fa-fw fa-caret-right"></i>{% trans from 'security' %}Security analyser warnings{% endtrans %}</strong>
                    </a>
                </div>
                <div class="collapse" id="securitysettings_full">
                    <div class="col-md-6">
                        <h4>{% trans from 'security' %}Security warnings{% endtrans %}</h4>
                        {% if not security.updatecheck %}
                            <p><strong>{% trans from 'security' %}The update check is not enabled, but preferably should be.{% endtrans %}</strong></p>
                        {% endif %}
                        {% if not security.scactive %}
                            <p><strong>{% trans from 'security' %}Security center module is not activated, but preferably should be.{% endtrans %}</strong></p>
                            <p>{% trans from 'security' %}When a site is originally installed, the Security center is installed and activated by default. You will see the above message if the Security center has been deactivated. You are recommended to leave the Security center activated, as it enhances a site's security.{% endtrans %}</p>
                        {% endif %}
                        {% if not security.useids %}
                            <p><strong>{% trans from 'security' %}PHPIDS with the Security Center is not activated, but preferably should be.{% endtrans %}</strong></p>
                            <p>{% trans from 'security' %}PHPIDS is a feature of the Security center module that enhances the security of a site, and the Security analyser has detected that it is not enabled. You are recommended to ensure that it is enabled. You will also see this message if the Security center module is not installed or is not activated. For more information about this, please consult the Security center on-line help.{% endtrans %}</p>
                        {% elseif security.useids and security.idssoftblock %}
                            <p><strong>{% trans from 'security' %}PHPIDS is activated, but requests are NOT blocked.{% endtrans %}</strong></p>
                            <p>{% trans from 'security' %}PHPIDS is enabled and you have set the Block action to 'Warn only'. Thus requests are not blocked. This is useful only for debugging the PHPIDS ruleset in order to verify correct operation.{% endtrans %}</p>
                        {% endif %}
                    </div>
                </div>
            </div>
        </div>
    {% endif %}
{% endif %}
