aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/src/templates/partials/actions.html
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-12-15 10:08:56 +0800
committerGitHub <noreply@github.com>2023-12-15 10:08:56 +0800
commitd697a1774ad8571e9314e3bd85aa141170587d19 (patch)
treecd3c3d84e3288db1f8e574a0b4dfb85e2e40f764 /docs/src/templates/partials/actions.html
parent4943d5eff52a75caaccda6a1d84183032f06be26 (diff)
parent4dafb0f0a81255193f2a44df5d203239325e2236 (diff)
downloadinfini-d697a1774ad8571e9314e3bd85aa141170587d19.tar.gz
infini-d697a1774ad8571e9314e3bd85aa141170587d19.zip
Merge branch 'master' into master
Diffstat (limited to 'docs/src/templates/partials/actions.html')
-rw-r--r--docs/src/templates/partials/actions.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/src/templates/partials/actions.html b/docs/src/templates/partials/actions.html
new file mode 100644
index 00000000..1031f151
--- /dev/null
+++ b/docs/src/templates/partials/actions.html
@@ -0,0 +1,22 @@
+{#-
+ This file was automatically generated - do not edit
+-#}
+{% if page.edit_url %}
+ {% if "content.action.edit" in features %}
+ <a href="{{ page.edit_url }}" title="{{ lang.t('action.edit') }}" class="md-content__button md-icon">
+ {% set icon = config.theme.icon.edit or "material/file-edit-outline" %}
+ {% include ".icons/" ~ icon ~ ".svg" %}
+ </a>
+ {% endif %}
+ {% if "content.action.view" in features %}
+ {% if "/blob/" in page.edit_url %}
+ {% set part = "blob" %}
+ {% else %}
+ {% set part = "edit" %}
+ {% endif %}
+ <a href="{{ page.edit_url | replace(part, 'raw') }}" title="{{ lang.t('action.view') }}" class="md-content__button md-icon">
+ {% set icon = config.theme.icon.view or "material/file-eye-outline" %}
+ {% include ".icons/" ~ icon ~ ".svg" %}
+ </a>
+ {% endif %}
+{% endif %}