Public archive for the Return to Ritherdon project.
https://www.nicolaellisandritherdon.com
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
{% extends "layouts/default.html" %} |
|
{% block title %}Manage you archive.{% endblock %} |
|
{% block content %} |
|
|
|
<div> |
|
<h2>File Upload</h2> |
|
<p><em> |
|
Warning: This will overwrite any files stored on the server with the same name. |
|
</em></p> |
|
<form action="/storage/multi-upload" method="POST" enctype="multipart/form-data"> |
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
|
<input required type="file" name="STORAGE-FILES" multiple> |
|
<input type="submit" value="Upload Files"/> |
|
</form> |
|
</div> |
|
|
|
<h1>Storage Files</h1> |
|
{% for item in files %} |
|
<div> |
|
<p> |
|
<a href="/storage/view/media/{{item.slug}}"> |
|
<img src="{{ item | build-thumbnail-path }}" alt="{{item.name}}"> |
|
</a> |
|
{% if roles.administrator %} |
|
<form action="/storage/rename/{{item.slug}}" method="POST"> |
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
|
<input required type="text" name="NEW-FILE-NAME" value="{{item.name}}"> |
|
<input type="submit" value="Rename"/> |
|
</form> |
|
<form action="/storage/delete/{{item.slug}}" method="POST"> |
|
<input required type="hidden" name="AUTHENTICITY-TOKEN" value="{{token}}"> |
|
<input type="submit" value="Delete"/> |
|
</form> |
|
{% endif %} |
|
</p> |
|
</div> |
|
{% endfor %} |
|
{% endblock %}
|
|
|