mirror of
https://github.com/Xevion/simple-viewer.git
synced 2025-12-11 00:08:41 -06:00
added server side directory adding, validation and redirecting, show directory path and mention 'files' near filecount in panel header
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<br>
|
||||
Additionally, files can be matched <i>recursively</i> if you so wish. Please note that this functionality may create anomalous behavior around duplicate files.
|
||||
</p>
|
||||
<form action="{% url 'add_submit' %}">
|
||||
<form action="{% url 'add_submit' %}" method="post">
|
||||
{% csrf_token %}
|
||||
<div class="field">
|
||||
<label class="label">Directory</label>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
{% block content %}
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
Files
|
||||
{{ directory.path }}
|
||||
<span style="font-weight: 400; font-style: italic; font-size: 70%;">
|
||||
{{ files|length }}
|
||||
{{ files|length }} files
|
||||
</span>
|
||||
<span style="vertical-align: middle;" class="panel-icon">
|
||||
<a href="{% url 'index' %}">
|
||||
|
||||
Reference in New Issue
Block a user