Start on removing git and better integrate db
This commit is contained in:
20
templates/version/index.html.twig
Normal file
20
templates/version/index.html.twig
Normal file
@ -0,0 +1,20 @@
|
||||
{% extends 'base/base.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: latestVersion, snip: snip.id}) }}" class="btn btn-warning">
|
||||
<i class="fa fa-refresh"></i> Latest
|
||||
</a>
|
||||
<br><br>
|
||||
<div class="list-group">
|
||||
{% for version in versions %}
|
||||
<a class="list-group-item" href="{{ path('version_set', {version: version.id, snip: snip.id}) }}">
|
||||
{{ version.name }} - {{ version.id }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user