diff options
| author | 2023-10-07 06:48:07 +0800 | |
|---|---|---|
| committer | 2023-10-07 06:48:07 +0800 | |
| commit | 991fd7a6d67ee017c57beaaa21fc31c4bee7944d (patch) | |
| tree | e895202203fcaa50b0052f60ef6fc7d6d2928cf9 /material/templates/partials/actions.html | |
| parent | d62900046bb6f754a8e6e7e670a66a90134055d9 (diff) | |
| download | infini-991fd7a6d67ee017c57beaaa21fc31c4bee7944d.tar.gz infini-991fd7a6d67ee017c57beaaa21fc31c4bee7944d.zip | |
feat(version): versions
Diffstat (limited to 'material/templates/partials/actions.html')
| -rw-r--r-- | material/templates/partials/actions.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/material/templates/partials/actions.html b/material/templates/partials/actions.html new file mode 100644 index 00000000..1031f151 --- /dev/null +++ b/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 %} |
