Files
simple-viewer/viewer/templates/index.html
Xevion 392aa6a269 better color styling of icons, text, borders, code tag, tag component, remove old unneeded styling code, move inline styling code out as needed, styling comments
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
2020-11-05 18:29:41 -06:00

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 %}