Move created by badge to the right

This commit is contained in:
Tim 2023-12-23 23:31:08 +01:00
parent 3225ec5fe0
commit be5e457d1b

View File

@ -6,14 +6,17 @@
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<a class="btn btn-success" href="{{ path('snip_new') }}"> <a class="btn btn-success" href="{{ path('snip_new') }}">
<i class="fa fa-plus"></i> Add <i class="fa fa-plus"></i> Add
</a><br><br> </a>
<br><br>
<div class="list-group"> <div class="list-group">
{% for snip in snips %} {% for snip in snips %}
<a class="list-group-item" href="{{ path('snip_single', {snip: snip.id}) }}"> <a class="list-group-item d-flex justify-content-between" href="{{ path('snip_single', {snip: snip.id}) }}">
{% if snip.createdBy == app.user %} <span>
{{ include('snip/badge.html.twig', {snip: snip}) }} {% if snip.createdBy == app.user %}
{% endif %} {{ include('snip/badge.html.twig', {snip: snip}) }}
{{ snip }} {% endif %}
{{ snip }}
</span>
{% if snip.createdBy != app.user %} {% if snip.createdBy != app.user %}
{{ include('user/badge.html.twig', {user: snip.createdBy}) }} {{ include('user/badge.html.twig', {user: snip.createdBy}) }}
{% endif %} {% endif %}