Snips/templates/snip/index.html.twig

17 lines
528 B
Twig
Raw Normal View History

2023-04-03 23:44:13 +02:00
{% extends 'base/base.html.twig' %}
2023-04-05 00:55:02 +02:00
{% block title %}My snips{% endblock %}
2023-04-03 23:44:13 +02:00
{% block body %}
2023-04-05 00:55:02 +02:00
<h1>My snips</h1>
<a class="btn btn-success" href="{{ path('snip_new') }}">
<i class="fa fa-plus"></i> Add
</a><br><br>
2023-04-04 01:39:08 +02:00
<div class="list-group">
{% for snip in snips %}
<a class="list-group-item" href="{{ path('snip_single', {snip: snip.id}) }}">
{{ 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 %}