Allow browsing public snips
Fixed big with branch name not existing if nothing committed
This commit is contained in:
@ -1,16 +1,22 @@
|
||||
{% extends 'base/base.html.twig' %}
|
||||
|
||||
{% block title %}My snips{% endblock %}
|
||||
{% block title %}{{ title }}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>My snips</h1>
|
||||
<h1>{{ title }}</h1>
|
||||
<a class="btn btn-success" href="{{ path('snip_new') }}">
|
||||
<i class="fa fa-plus"></i> Add
|
||||
</a><br><br>
|
||||
<div class="list-group">
|
||||
{% for snip in snips %}
|
||||
<a class="list-group-item" href="{{ path('snip_single', {snip: snip.id}) }}">
|
||||
{{ include('snip/badge.html.twig', {snip: snip}) }} {{ snip }}
|
||||
{% if snip.createdBy == app.user %}
|
||||
{{ include('snip/badge.html.twig', {snip: snip}) }}
|
||||
{% endif %}
|
||||
{{ snip }}
|
||||
{% if snip.createdBy != app.user %}
|
||||
{{ include('user/badge.html.twig', {user: snip.createdBy}) }}
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user