Add Security for history

This commit is contained in:
Tim
2023-04-05 23:05:33 +02:00
parent 1f464220ee
commit ce456adf10
2 changed files with 8 additions and 2 deletions

View File

@ -6,9 +6,10 @@
<a href="{{ path('snip_single', {snip: snip.id}) }}" class="btn btn-primary">
<i class="fa fa-arrow-left"></i> Back
</a>
<a href="{{ path('history_set', {commit: 'master', snip: snip.id}) }}" class="btn btn-primary">
<i class="fa fa-reset"></i> Reset to latest
<a href="{{ path('history_set', {commit: 'master', snip: snip.id}) }}" class="btn btn-warning">
<i class="fa fa-refresh"></i> Master
</a>
<br><br>
<div class="list-group">
{% for commit in commits %}
<a class="list-group-item" href="{{ path('history_set', {commit: commit.hash, snip: snip.id}) }}">