You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
926 B
32 lines
926 B
<!-- Actions -->
|
|
{% if page.edit_url %}
|
|
|
|
<!-- Edit button -->
|
|
{% if "content.action.edit" in features and "edit" not in page.meta.hide %}
|
|
<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 %}
|
|
|
|
<!-- View button -->
|
|
{% 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 %} |