Change the snip layout to make it less cluttered

This commit is contained in:
Tim
2025-05-24 00:02:23 +02:00
parent 797d7a2e8f
commit 5fcc32de6d
6 changed files with 111 additions and 76 deletions

View File

@ -1,18 +1,18 @@
{% extends 'base/one.column.html.twig' %}
{% extends 'snip/base.html.twig' %}
{% set title = 'Snip ' ~ snip %}
{% set title %}{{ snip }} - Versions{% endset %}
{% set active = 'versions' %}
{% block body %}
<a href="{{ path('snip_single', {snip: snip.id}) }}" class="btn btn-primary">
<i class="fa fa-arrow-left"></i> Back
</a>
{% block buttons %}
<a href="{{ path('version_set', {version: snip.latestVersion.id, snip: snip.id}) }}" class="btn btn-warning">
<i class="fa fa-refresh"></i> Latest
</a>
<a href="{{ path('content_compare', {to: snip.activeVersion.id}) }}" class="btn btn-info">
<i class="fa fa-left-right"></i> Compare
</a>
<br><br>
{% endblock %}
{% block cardbody %}
<div class="list-group">
{% for version in snip.snipContents|reverse %}
<a class="list-group-item {% if version.id == snip.activeVersion.id %}list-group-item-success{% endif %} d-flex justify-content-between"