copypaste2/templates/sidebar.html.twig

13 lines
484 B
Twig
Raw Normal View History

2015-03-03 20:38:52 +00:00
<div>
<div class="panel panel-default">
<div class="panel-heading">{{ 'sidebar_title' | trans() }}</div>
<ul class="list-group">
{% for paste in pastes %}
<a href="{{ path('paste_show_public', {'id': paste.id}) }}" class="list-group-item">
2015-03-03 20:38:52 +00:00
#{{ paste.id }}&nbsp;-&nbsp;{% if paste.author %}{{ paste.author }}{% else %}anonymous{% endif %}
</a>
{% endfor %}
</ul>
</div>
</div>