Change the snip layout to make it less cluttered
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user