Snips/templates/snip/single.html.twig

18 lines
618 B
Twig
Raw Normal View History

2023-04-03 23:44:13 +02:00
{% extends 'base/base.html.twig' %}
{% block body %}
<div class="card" style="width: 100%;">
<h4 class="card-header">
{% if is_granted('edit', snip) %}
<a class="btn btn-sm btn-outline-info" href="{{ path('snip_edit', {snip: snip.id}) }}">
<i class="fa fa-pencil" aria-hidden="true"></i>
</a>
{% endif %}
{{ include('snip/badge.html.twig', {snip: snip}) }}
{{ snip }}
</h4>
<div class="card-body">
<p class="card-text">{{ content }}</p>
</div>
</div>
2023-04-03 23:44:13 +02:00
{% endblock %}