20 lines
760 B
Twig
20 lines
760 B
Twig
{% extends 'base/single.column.html.twig' %}
|
|
|
|
{% block title %}Snip {{ snip }}{% endblock %}
|
|
|
|
{% block body %}
|
|
<a href="{{ path('snip_single', {snip: snip.id}) }}" class="btn btn-primary">
|
|
<i class="fa fa-arrow-left"></i> Back
|
|
</a>
|
|
<a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning">
|
|
<i class="fa fa-refresh"></i> Latest
|
|
</a>
|
|
<br><br>
|
|
<div class="list-group">
|
|
{% for version in snip.snipContents %}
|
|
<a class="list-group-item" href="{{ path('version_set', {version: version.id, snip: snip.id}) }}">
|
|
{{ version.id.dateTime|date('Y-m-d H:i:s') }} - {{ version.id }}
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %} |