Implement snip hiding
This commit is contained in:
16
templates/snip/public.html.twig
Normal file
16
templates/snip/public.html.twig
Normal file
@ -0,0 +1,16 @@
|
||||
{% extends 'base/single.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 %}
|
Reference in New Issue
Block a user