elixir/templates/tree.html
2024-07-30 15:16:11 +02:00

42 lines
1.2 KiB
HTML

{% extends "layout.html" %}
{% block title %}
{{ title_path }} {{ current_project|capitalize }} source code {{ current_tag }} - Bootlin
{% endblock %}
{% block main %}
<div class="lxrtree">
<table>
<tbody>
{% if back_url is not none %}
<tr>
<td><a class="tree-icon icon-back" href="{{ back_url }}">Parent directory</a></td>
</tr>
{% endif %}
{% for type, name, path, url, size in dir_entries %}
<tr>
<td>
<a class="tree-icon icon-{{- type if type != 'symlink' else 'blob' -}}"
href="{{ url }}">
{% if type == 'symlink' %}
{{ name }} -> {{ path }}
{% else %}
{{ name }}
{% endif %}
</a>
</td>
<td>
{% if size is not none %}
<a tabindex="-1" class="size" href="{{ url }}">
{{ size }} bytes
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}