mirror of
https://github.com/Xevion/simple-viewer.git
synced 2025-12-09 10:08:45 -06:00
inline styling is still very much present and needs to be uplifted out of there, but I'm still not sure of what to name everything. I wish I knew the best practices here. very frustrating that there's no one in the world who cares enough to let me consult for free
33 lines
1.3 KiB
HTML
33 lines
1.3 KiB
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="panel">
|
|
<div class="panel-heading">Directories</div>
|
|
{% if directories|length > 0 %}
|
|
{% for served_directory in directories %}
|
|
<div class="panel-block is-flex">
|
|
<span class="panel-icon is-align-self-flex-start">
|
|
<i class="fas fa-folder fa-lg" aria-hidden="true"></i>
|
|
</span>
|
|
<a href="{% url 'browse' served_directory.id %}" class="is-align-self-flex-end">
|
|
{{ served_directory.path }}
|
|
{% if served_directory.regex %}
|
|
<span class="tag is-primary">Filtered</span>
|
|
{% endif %}
|
|
</a>
|
|
<a href="{% url 'delete' served_directory.id %}">
|
|
<span class="icon has-text-danger">
|
|
<i class="fas fa-times fa-lg" aria-hidden="true"></i>
|
|
</span>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<div class="panel-block">
|
|
<p>
|
|
No directories available.
|
|
</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock content %}
|