Move created by badge to the right
This commit is contained in:
parent
3225ec5fe0
commit
be5e457d1b
@ -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}) }}">
|
||||||
|
<span>
|
||||||
{% if snip.createdBy == app.user %}
|
{% if snip.createdBy == app.user %}
|
||||||
{{ include('snip/badge.html.twig', {snip: snip}) }}
|
{{ include('snip/badge.html.twig', {snip: snip}) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ snip }}
|
{{ 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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user