Add extra meta data to snip view and show all snips in public
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
{% extends 'base/single.column.html.twig' %}
|
||||
|
||||
{% set title = 'Snip index' %}
|
||||
|
||||
{% block body %}
|
||||
<a class="btn btn-success" href="{{ path('snip_new') }}">
|
||||
<i class="fa fa-plus"></i> Add
|
||||
|
@ -39,6 +39,10 @@
|
||||
<p class="card-text text-muted">
|
||||
Current version: {{ snip.activeVersion.id }}
|
||||
{% if snip.activeVersion == snip.latestVersion %}(latest){% endif %}
|
||||
|
||||
Created at {{ snip.activeVersion.id.dateTime|date('Y-m-d H:i:s') }}
|
||||
|
||||
{{ include('user/badge.html.twig', {user: snip.createdBy}) }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user