diff options
| author | 2023-12-15 09:17:18 +0800 | |
|---|---|---|
| committer | 2023-12-15 09:17:18 +0800 | |
| commit | efb0730e641f575368e7e80fec80be16a03c95f4 (patch) | |
| tree | 1732934333d589234eb92ca880364b6e1acfb378 /docs/src/material/templates/partials/actions.html | |
| parent | 31c55c2ea7d7aad1df6748f91101dcf69bb29475 (diff) | |
| download | infini-efb0730e641f575368e7e80fec80be16a03c95f4.tar.gz infini-efb0730e641f575368e7e80fec80be16a03c95f4.zip | |
refactor(dir-tree): `material` -> `src/material`
Diffstat (limited to 'docs/src/material/templates/partials/actions.html')
| -rw-r--r-- | docs/src/material/templates/partials/actions.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/src/material/templates/partials/actions.html b/docs/src/material/templates/partials/actions.html new file mode 100644 index 00000000..1031f151 --- /dev/null +++ b/docs/src/material/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 %} |
