{% extends 'base/one.column.html.twig' %}

{% set title = 'Public Snips' %}

{% block body %}
    <div class="list-group">
        {% for snip in snips %}
            <a class="list-group-item d-flex justify-content-between" href="{{ path('snip_single', {snip: snip.id}) }}">
                <span>
                    {{ snip }}
                </span>
                {{ include('user/badge.html.twig', {user: snip.createdBy}) }}
            </a>
        {% endfor %}
    </div>
{% endblock %}