{% from 'tekir_macros.html' import render_breadcrumbs %}

{{ render_breadcrumbs(record, ancestors) }}

<h1>{{ record.title }}</h2>

<a class="button" href="{{ url_for('tekir_admin.edit_content', path=record.path) }}">
  {% include 'icons/edit-entry.svg' %} <span>{{ _('Edit') }}</span>
</a>
<a class="button" href="{{ record.path }}">
  {% include 'icons/preview_sel.svg' %} <span>{{ _('View') }}</span>
</a>
<button
    hx-get="{{ url_for('tekir_admin.api.open_folder', path=record.path) }}"
    hx-swap="none">
  {% include 'icons/document-open-folder.svg' %} <span>{{ _('Open folder') }}</span>
</button>
