Files
CodeShare/Source/assets/html/codebox.twig
2018-10-11 15:39:11 +02:00

36 lines
1.0 KiB
Twig

<table style="width: 100%; text-align:center">
<tr>
<th>
<a href="{{ path('code',{'idc': code.idc,'lang': code.lang,'version': code.version}) }}">{{ code.name }}</a>
</th>
</tr>
<tr>
<td><strong>Author:</strong>&nbsp{{ code.nick }} <strong> Version: </strong>{{ code.version }} <strong>
Lang: </strong>{{ code.lLang }}</td>
</tr>
{% if code.extlib is defined and code.extlib != "" %}
<tr>
<td>
<strong>External library:</strong>&nbsp{{ code.extlib }}
{% if code.extlibver is not null %}
<strong> Version used: </strong>{{ code.extlibver }}
{% endif %}
</td>
</tr>
{% endif %}
<tr>
<th colspan="6">Description</th>
</tr>
<tr>
<td colspan="6">{{ code.description }}</td>
</tr>
<tr>
<th colspan="6">Code</th>
</tr>
<tr>
<td colspan="6">
<pre class="highlight"><code class='{{ code.lang }} codeto'>{{ code.code }}</code></pre>
</td>
</tr>
</table>