2023-12-23 23:56:18 +01:00
|
|
|
{% extends 'base/single.column.html.twig' %}
|
2023-04-05 22:46:37 +02:00
|
|
|
|
|
|
|
{% 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>
|
2023-12-20 22:37:06 +01:00
|
|
|
<a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning">
|
2023-12-17 01:55:26 +01:00
|
|
|
<i class="fa fa-refresh"></i> Latest
|
2023-04-05 22:46:37 +02:00
|
|
|
</a>
|
2023-04-05 23:05:33 +02:00
|
|
|
<br><br>
|
2023-04-05 22:46:37 +02:00
|
|
|
<div class="list-group">
|
2023-12-20 22:37:06 +01:00
|
|
|
{% for version in snip.snipContents %}
|
2023-12-18 01:26:44 +01:00
|
|
|
<a class="list-group-item" href="{{ path('version_set', {version: version.id, snip: snip.id}) }}">
|
2023-12-20 22:37:06 +01:00
|
|
|
{{ version.id.dateTime|date('Y-m-d H:i:s') }} - {{ version.id }}
|
2023-04-05 22:46:37 +02:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|