mirror of
https://github.com/Xevion/simple-viewer.git
synced 2025-12-07 18:08:24 -06:00
39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="panel">
|
|
<div class="panel-heading">
|
|
{{ directory.path }}
|
|
<span style="font-weight: 400; font-style: italic; font-size: 70%;">
|
|
{{ files|length }} files
|
|
</span>
|
|
<span style="vertical-align: middle;" class="panel-icon">
|
|
<a href="{% url 'index' %}">
|
|
<i class="fas fa-arrow-up" aria-hidden="true"></i>
|
|
</a>
|
|
</span>
|
|
</div>
|
|
{% for file in files %}
|
|
<div class="panel-block">
|
|
<span class="panel-icon pr-4">
|
|
<i class="fas fa-{{ file.1 }} fa-lg" aria-hidden="true"></i>
|
|
</span>
|
|
{% if file.1 == 'folder' %}
|
|
<a href="{% url 'add' %}?path={{ file.2 }}">
|
|
{{ file.0 }}
|
|
</a>
|
|
{% else %}
|
|
<a href="{% url 'file' directory.id file.0 %}">
|
|
{{ file.0 }}
|
|
{{ file.0 }}
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"
|
|
integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg=="
|
|
crossorigin="anonymous"></script>
|
|
{% load static %}
|
|
<script src="{% static "hover.js" %}"></script>
|
|
{% endblock content %}
|