2022-07-20 18:25:55 +03:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2022-09-20 14:39:12 +03:00
|
|
|
{% set cookies = config.extra.consent.cookies | d({}) %}
|
|
|
|
{% if config.extra.analytics %}
|
|
|
|
{% if "analytics" not in cookies %}
|
|
|
|
{% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
|
|
|
|
{% endif %}
|
2022-09-18 16:40:38 +03:00
|
|
|
{% endif %}
|
2022-09-29 17:55:17 +03:00
|
|
|
{% if config.repo_url and "github.com" in config.repo_url %}
|
2022-09-20 14:39:12 +03:00
|
|
|
{% if "github" not in cookies %}
|
|
|
|
{% set _ = cookies.update({ "github": "GitHub" }) %}
|
|
|
|
{% endif %}
|
2022-07-20 18:25:55 +03:00
|
|
|
{% endif %}
|
|
|
|
{% set actions = config.extra.consent.actions %}
|
|
|
|
{% if not actions %}
|
|
|
|
{% set actions = ["accept", "manage"] %}
|
|
|
|
{% endif %}
|
2022-11-12 16:44:59 +03:00
|
|
|
{% if "manage" not in actions %}
|
2022-10-28 12:41:14 +03:00
|
|
|
{% set checked = "checked" %}
|
|
|
|
{% endif %}
|
2022-07-20 18:25:55 +03:00
|
|
|
<h4>{{ config.extra.consent.title }}</h4>
|
|
|
|
<p>{{ config.extra.consent.description }}</p>
|
2022-10-28 12:41:14 +03:00
|
|
|
<input class="md-toggle" type="checkbox" id="__settings" {{ checked }}>
|
2022-07-20 18:25:55 +03:00
|
|
|
<div class="md-consent__settings">
|
|
|
|
<ul class="task-list">
|
|
|
|
{% for type in cookies %}
|
2022-10-28 12:42:58 +03:00
|
|
|
{% set checked = "" %}
|
2022-07-20 18:25:55 +03:00
|
|
|
{% if cookies[type] is string %}
|
|
|
|
{% set name = cookies[type] %}
|
|
|
|
{% set checked = "checked" %}
|
|
|
|
{% else %}
|
|
|
|
{% set name = cookies[type].name %}
|
|
|
|
{% if cookies[type].checked %}
|
|
|
|
{% set checked = "checked" %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<li class="task-list-item">
|
|
|
|
<label class="task-list-control">
|
|
|
|
<input type="checkbox" name="{{ type }}" {{ checked }}>
|
|
|
|
<span class="task-list-indicator"></span>
|
|
|
|
{{ name }}
|
2023-02-03 13:07:29 +03:00
|
|
|
</label>
|
2022-07-20 18:25:55 +03:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<div class="md-consent__controls">
|
|
|
|
{% for action in actions %}
|
|
|
|
{% if action == "accept" %}
|
|
|
|
<button class="md-button md-button--primary">
|
|
|
|
{{- lang.t("consent.accept") -}}
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if action == "reject" %}
|
|
|
|
<button type="reset" class="md-button md-button--primary">
|
|
|
|
{{- lang.t("consent.reject") -}}
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if action == "manage" %}
|
|
|
|
<label class="md-button" for="__settings">
|
|
|
|
{{- lang.t("consent.manage") -}}
|
|
|
|
</label>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|