resources/views/tokens/show.twig
{% extends 'global.twig' %}
{% block main %}
{% include 'partials/header.twig' %}
<main>
{{ breadcrumbs|raw }}
<h1>Token</h1>
<dl>
<dt>Path</dt>
<dd>{{ token.path }}</dd>
<dt>Title</dt>
<dd>{{ token.title }}</dd>
</dl>
<div class="buttons">
{% if not read_only %}
<a class="button" href="{{ route('tokens.edit', [token.id_hash]) }}">Edit</a>
{% endif %}
<a class="button button-secondary" href="{{ route('tokens.code', [token.path]) }}">Code</a>
{% if allow_export %}
<a class="button button-secondary" href="{{ route('tokens.export', [token.path]) }}">Export</a>
{% endif %}
{% if not read_only %}
<a class="button button-bad" href="{{ route('tokens.delete', [token.id_hash]) }}" onclick="return confirm('Are you sure you want to delete this token?')">Delete</a>
{% endif %}
</div>
</main>
{% endblock %}