Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/partials/actions.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
<!-- View button -->
{% if "content.action.view" in features %}
{% if "/blob/" in page.edit_url %}
{% set part = "blob" %}
{% set part = "/blob/" %}
{% else %}
{% set part = "edit" %}
{% 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>
<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 %}