aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/src/material/templates/partials/consent.html
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-12-15 09:22:24 +0800
committer简律纯 <i@jyunko.cn>2023-12-15 09:22:24 +0800
commitdaa378d6964841d9a5c4bc39815d75c672117dea (patch)
tree8cfc92f73bcbd80a472ecc5f1f65df5b72ff1892 /docs/src/material/templates/partials/consent.html
parentefb0730e641f575368e7e80fec80be16a03c95f4 (diff)
downloadinfini-daa378d6964841d9a5c4bc39815d75c672117dea.tar.gz
infini-daa378d6964841d9a5c4bc39815d75c672117dea.zip
refactor(docs/src): delete `material` dir
Diffstat (limited to 'docs/src/material/templates/partials/consent.html')
-rw-r--r--docs/src/material/templates/partials/consent.html66
1 files changed, 0 insertions, 66 deletions
diff --git a/docs/src/material/templates/partials/consent.html b/docs/src/material/templates/partials/consent.html
deleted file mode 100644
index 4ac5cb77..00000000
--- a/docs/src/material/templates/partials/consent.html
+++ /dev/null
@@ -1,66 +0,0 @@
-{#-
- This file was automatically generated - do not edit
--#}
-{% set cookies = config.extra.consent.cookies | d({}) %}
-{% if config.extra.analytics %}
- {% if "analytics" not in cookies %}
- {% set _ = cookies.update({ "analytics": "Google Analytics" }) %}
- {% endif %}
-{% endif %}
-{% if config.repo_url and "github.com" in config.repo_url %}
- {% if "github" not in cookies %}
- {% set _ = cookies.update({ "github": "GitHub" }) %}
- {% endif %}
-{% endif %}
-{% set actions = config.extra.consent.actions %}
-{% if not actions %}
- {% set actions = ["accept", "manage"] %}
-{% endif %}
-{% if "manage" not in actions %}
- {% set checked = "checked" %}
-{% endif %}
-<h4>{{ config.extra.consent.title }}</h4>
-<p>{{ config.extra.consent.description }}</p>
-<input class="md-toggle" type="checkbox" id="__settings" {{ checked }}>
-<div class="md-consent__settings">
- <ul class="task-list">
- {% for type in cookies %}
- {% set checked = "" %}
- {% 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 }}
- </label>
- </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>