2024-09-09 11:12:57 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-09-09 21:23:37 +02:00
|
|
|
<title>Folder Contents</title>
|
2024-09-09 11:12:57 +02:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
background-color: #121212;
|
|
|
|
color: #e0e0e0;
|
|
|
|
margin: 0;
|
2024-09-09 21:23:37 +02:00
|
|
|
padding: 20px;
|
2024-09-09 11:12:57 +02:00
|
|
|
}
|
|
|
|
.container {
|
|
|
|
background: #1e1e1e;
|
|
|
|
border-radius: 8px;
|
|
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
|
|
|
padding: 20px;
|
2024-09-09 21:23:37 +02:00
|
|
|
max-width: 800px;
|
|
|
|
margin: 0 auto;
|
2024-09-09 11:12:57 +02:00
|
|
|
}
|
|
|
|
h1 {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
color: #f5f5f5;
|
2024-09-09 21:23:37 +02:00
|
|
|
text-align: center;
|
2024-09-09 11:12:57 +02:00
|
|
|
}
|
2024-09-09 21:23:37 +02:00
|
|
|
.folder-structure {
|
|
|
|
background: #2a2a2a;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 10px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
.file-list {
|
2024-09-09 11:12:57 +02:00
|
|
|
list-style-type: none;
|
|
|
|
padding: 0;
|
|
|
|
}
|
2024-09-09 21:23:37 +02:00
|
|
|
.file-list li {
|
2024-09-09 11:12:57 +02:00
|
|
|
margin: 10px 0;
|
2024-09-09 21:23:37 +02:00
|
|
|
padding: 5px;
|
|
|
|
background: #333;
|
|
|
|
border-radius: 4px;
|
2024-09-09 11:12:57 +02:00
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: #61afef;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2024-09-09 21:23:37 +02:00
|
|
|
.download-all-btn {
|
|
|
|
display: block;
|
|
|
|
width: 200px;
|
|
|
|
margin: 20px auto;
|
|
|
|
padding: 10px;
|
|
|
|
background-color: #4CAF50;
|
|
|
|
color: white;
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
border-radius: 5px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.download-all-btn:hover {
|
|
|
|
background-color: #45a049;
|
|
|
|
}
|
|
|
|
.pagination {
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
.pagination a {
|
|
|
|
margin: 0 10px;
|
|
|
|
}
|
2024-09-09 11:12:57 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
2024-09-09 21:23:37 +02:00
|
|
|
<h1>Folder Contents</h1>
|
|
|
|
|
|
|
|
<div class="folder-structure">
|
|
|
|
<!-- You can add a tree-like structure here if needed -->
|
|
|
|
<p>Current folder: /{{ current_folder }}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="file-list">
|
2024-09-09 11:12:57 +02:00
|
|
|
{% for file in files %}
|
2024-09-09 21:23:37 +02:00
|
|
|
<li><a href="{{ file.url }}">{{ file.name }}</a></li>
|
2024-09-09 11:12:57 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2024-09-09 21:23:37 +02:00
|
|
|
|
|
|
|
<a href="{{ download_all_url }}" class="download-all-btn">Download All</a>
|
|
|
|
|
|
|
|
<div class="pagination">
|
|
|
|
{% if prev_url %}
|
|
|
|
<a href="{{ prev_url }}">Previous</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if next_url %}
|
|
|
|
<a href="{{ next_url }}">Next</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2024-09-09 11:12:57 +02:00
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|