1
0
mirror of https://github.com/ToxicCrack/PrintABrick.git synced 2025-05-28 09:40:14 -07:00
PrintABrick/app/Resources/views/brickset/instructions.html.twig
2017-05-05 20:10:56 +02:00

32 lines
1.2 KiB
Twig

{% extends 'ajax.html.twig' %}
{% import 'macros/blocks.html.twig' as blocks %}
{% import 'macros/elements.html.twig' as elements %}
{% block content %}
{% if instructions|length != 0 %}
<p><cite>{{ 'set.instructions.text' | trans | raw | nl2br }}</cite></p>
<p class="ui text right">Text and data obtained from <a href="https://brickset.com/" title="Brickset">Brickset</a></p>
<table class="ui celled padded table">
<thead>
<tr>
<th>{{ 'set.instructions.description' | trans }}</th>
<th>{{ 'set.instructions.filesize' | trans }}</th>
<th>{{ 'set.instructions.filename' | trans }}</th>
</tr>
</thead>
<tbody>
{% for instruction in instructions %}
<tr>
<td>{{ instruction.description }}</td>
<td>{{ remoteSize(instruction.uRL) | bytesToSize }}</td>
<td><a href="{{ instruction.uRL }}">{{ remoteFilename(instruction.uRL) }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
{{ blocks.empty('empty.instructions') }}
{% endif %}
{% endblock %}