2024-09-09 22:08:21 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>{{ username }}'s Files</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
line-height: 1.6;
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px;
|
|
|
|
background-color: #1a1a1a;
|
|
|
|
color: #f0f0f0;
|
|
|
|
}
|
|
|
|
h2 {
|
|
|
|
color: #4CAF50;
|
|
|
|
}
|
2024-09-10 16:00:43 +02:00
|
|
|
.file-list {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 10px;
|
2024-09-09 22:08:21 +02:00
|
|
|
padding: 0;
|
2024-09-10 16:00:43 +02:00
|
|
|
list-style-type: none;
|
2024-09-09 22:08:21 +02:00
|
|
|
}
|
2024-09-10 16:00:43 +02:00
|
|
|
.file-item {
|
|
|
|
background-color: #2a2a2a;
|
|
|
|
padding: 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-09-09 22:08:21 +02:00
|
|
|
}
|
|
|
|
a {
|
|
|
|
color: #4CAF50;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2024-09-10 16:00:43 +02:00
|
|
|
.folder {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.file-icon {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
2024-09-09 22:08:21 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2>{{ username }}'s Files</h2>
|
2024-09-10 16:00:43 +02:00
|
|
|
<p>Current folder: {{ current_folder or 'Root' }}</p>
|
|
|
|
|
|
|
|
{% if parent_url is not none %}
|
|
|
|
<p><a href="{{ parent_url }}">Parent Directory</a></p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<ul class="file-list">
|
|
|
|
{% for folder in folders %}
|
|
|
|
<li class="file-item folder">
|
|
|
|
<span class="file-icon">📁</span>
|
|
|
|
<a href="{{ url_for('serve_user_page', username=username, filename=folder.path) }}">{{ folder.name }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2024-09-09 22:08:21 +02:00
|
|
|
{% for file in files %}
|
2024-09-10 16:00:43 +02:00
|
|
|
<li class="file-item">
|
|
|
|
<span class="file-icon">📄</span>
|
|
|
|
<a href="{{ url_for('serve_user_page', username=username, filename=file.path) }}">{{ file.name }}</a>
|
|
|
|
</li>
|
2024-09-09 22:08:21 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</body>
|
|
|
|
</html>
|