archives/archives/templates/files.html.j2

109 lines
2.3 KiB
Django/Jinja

{% extends "base.html.j2" %}
{% block content %}
{#
# icons: https://store.kde.org/p/1228310/
# https://github.com/MarianArlt/pixel-perfect-folder-icons
# https://github.com/alvatip/Nordzy-icon
#}
<div class="terminal">
<div class="shellcommand">
<span class="shellps1">{{ username }}<b>@</b>{{ domain }}:{{ ps1_path }}<b>$</b></span>
<span class="cursor">&nbsp;</span>
</div>
</div>
<table class="fileindex">
<thead class="subpagetitle">
<tr>
<th>
</th>
<th class="filename">
<a href="?sort_by=name">
name
</a>
</th>
<th>
</th>
<th>
<a href="?sort_by=date">
date
</a>
</th>
<th>
<a href="?sort_by=size">
size
</a>
</th>
</tr>
</thead>
<tbody>
{% if archives_path != "" -%}
<tr>
<td></td>
<td>
<a href="../">../</a>
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
{% endif %}
{% for item in items -%}
<tr>
<td>
{% if item.is_dir -%}
<img src="{{ static_url }}img/22px-folder.svg" class="listicon">
{% else %}
<img src="{{ static_url }}img/text-x-generic.svg" class="listicon">
{% endif %}
</td>
<td>
<a href="{{ item.href }}">{{ item.name }}</a>
</td>
<td>
{% if item.is_dir %}
[<a href="{{ item.href }}?zip">zip</a>]
{% endif %}
</td>
<td>
{{ " " }} {{ item.date }} {{ " " }}
</td>
<td class="filesize">
{%- if item.size_human %}
{{ item.size_human }}
{%- else %}
{%- endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<span class="giraffes">
</span>
{# <div class="terminal">
# <div class="shellcommand">
# <span class="shellps1"><b>$</b></span>wget -m -np -c -w 2 -R "index.html*" "https://{{ domain }}/{{ archives_path }}"
# </div>
# </div> #}
{% block text %}
{% endblock %}
{% endblock %}