Commit eabccc8f authored by Elger Jonker's avatar Elger Jonker

Comply or explain configuration

Former-commit-id: 8b04d41b
parent 0abcf496
......@@ -124,6 +124,10 @@
<li class="nav-item"><a class="nav-link" href="#extensive_statistics">{% trans "Statistics" %}</a></li>
{% endif %}
{% if config.SHOW_COMPLY_OR_EXPLAIN %}
<li class="nav-item"><a class="nav-link" href="#comply_or_explain_info">{% trans "Comply or explain" %}</a></li>
{% endif %}
{% if config.SHOW_DATASETS %}
<li class="nav-item"><a class="nav-link" href="#datasets">{% trans "Datasets" %}</a></li>
{% endif %}
......@@ -1080,19 +1084,23 @@
<div id="comply_or_explain">
<div class="page-header">
<a href="#" class="backtomap">{% trans "back to map" %} ↑</a>
<a name="datasets" class="jumptonav"></a>
<a name="comply_or_explain_info" class="jumptonav"></a>
<h2>{% trans "Comply or explain" %}</h2>
{% trans "Comply or explain introduction" %}
{% if config.SHOW_DATASETS %}
{% blocktrans %}You can download the entire dataset for further analysis in the <a href="#datasets">datasets</a> section.{% endblocktrans %}
{% endif %}
{% comment %}
If show datasets:
You can download the entire dataset for further analysis in the datasets section. Link.
if show discuss:
You can discuss comply or explain here: Link.
{% endcomment %}
The comply or explain argumentation can be discussed here:
<a href="{{ COMPLY_OR_EXPLAIN_DISCUSSION_FORUM_LINK }}" target="_blank" title="Comply or explain forum.">comply or explain forum</a>.
{% endblocktrans %}
{% endif %}
......@@ -693,6 +693,8 @@ CONSTANCE_CONFIG = {
'SHOW_DATASETS': (True, 'Shows dataset downloads. Note: dataset downloads are always available, even if they '
'are not shown on the website.', bool),
'SHOW_COMPLY_OR_EXPLAIN': (False, 'Shows comply or explain sections and the explain link in findings.', bool),
'SHOW_COMPLY_OR_EXPLAIN_DISCUSS': (False, 'Shows a link to the comply or explain discussion forum. The url of this'
'forum can be edited below.', bool),
'SHOW_TICKER': (False, 'Shows stock-ticker with updates in the past month.', bool),
'SHOW_SERVICES': (True, 'Show table with how many services are scanned. Requires SHOW_STATS_NUMBERS.', bool),
......@@ -705,6 +707,9 @@ CONSTANCE_CONFIG = {
'SHOW_HTTP_HEADERS_X_CONTENT': (True, 'Show graphs/stats of this? May cause empty spots on the site.', bool),
'SHOW_FTP': (True, 'Show graphs/stats of this? May cause empty spots on the site.', bool),
'COMPLY_OR_EXPLAIN_DISCUSSION_FORUM_LINK': ('', 'Link to the comply or explain discussion forum.', str),
'COMPLY_OR_EXPLAIN_EMAIL_ADDRESS': ('', 'E-mail where to receive explanations.', str),
# todo: schedule this once per week by default.
'DISCOVER_URLS_USING_NSEC': (True, 'Discover new domains using DNSSEC NSEC1 hashes? (See docs)', bool),
'DISCOVER_URLS_USING_KNOWN_SUBDOMAINS': (True, 'Discover new domains using known subdomains? (See docs)', bool),
......@@ -768,12 +773,16 @@ CONSTANCE_CONFIG_FIELDSETS = OrderedDict([
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment