Snips/templates/snip/index.html.twig

17 lines
528 B
Twig

{% extends 'base/base.html.twig' %}
{% block title %}My snips{% endblock %}
{% block body %}
<h1>My snips</h1>
<a class="btn btn-success" href="{{ path('snip_new') }}">
<i class="fa fa-plus"></i> Add
</a><br><br>
<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 }}
</a>
{% endfor %}
</div>
{% endblock %}