2023-12-23 23:56:18 +01:00
|
|
|
{% extends 'base/single.column.html.twig' %}
|
2023-04-05 00:31:41 +02:00
|
|
|
|
2023-04-03 23:44:13 +02:00
|
|
|
{% block body %}
|
2023-04-05 00:31:41 +02:00
|
|
|
<a class="btn btn-success" href="{{ path('snip_new') }}">
|
|
|
|
<i class="fa fa-plus"></i> Add
|
2023-12-23 23:31:08 +01:00
|
|
|
</a>
|
|
|
|
<br><br>
|
2023-04-04 01:39:08 +02:00
|
|
|
<div class="list-group">
|
|
|
|
{% for snip in snips %}
|
2023-12-23 23:31:08 +01:00
|
|
|
<a class="list-group-item d-flex justify-content-between" href="{{ path('snip_single', {snip: snip.id}) }}">
|
|
|
|
<span>
|
|
|
|
{% if snip.createdBy == app.user %}
|
|
|
|
{{ include('snip/badge.html.twig', {snip: snip}) }}
|
|
|
|
{% endif %}
|
|
|
|
{{ snip }}
|
|
|
|
</span>
|
2023-04-06 20:30:11 +02:00
|
|
|
{% if snip.createdBy != app.user %}
|
|
|
|
{{ include('user/badge.html.twig', {user: snip.createdBy}) }}
|
|
|
|
{% endif %}
|
2023-04-04 01:39:08 +02:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
2023-04-03 23:44:13 +02:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|