2023-04-03 23:44:13 +02:00
|
|
|
{% extends 'base/base.html.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
2023-04-04 01:39:08 +02:00
|
|
|
<h1>Snippets</h1>
|
|
|
|
<a class="btn btn-primary" href="{{ path('snip_new') }}">Create a new Snip</a>
|
|
|
|
<div class="list-group">
|
|
|
|
{% for snip in snips %}
|
2023-04-04 23:23:53 +02:00
|
|
|
<a class="list-group-item" href="{{ path('snip_single', {snip: snip.id}) }}">
|
2023-04-05 00:02:47 +02:00
|
|
|
{{ include('snip/badge.html.twig', {snip: snip}) }} {{ snip }}
|
2023-04-04 01:39:08 +02:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
2023-04-03 23:44:13 +02:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|