aboutsummaryrefslogtreecommitdiffstats
path: root/templates/file_list.html
blob: bfb8f2cbfca4cb2ee82f0385d8a9c576379211af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!doctype html>
<html>
<head>
    <title>File List</title>
    <style>
        table {
            border-collapse: collapse;
            width: 100%;
        }

        th, td {
            text-align: left;
            padding: 8px;
            border-bottom: 1px solid #ddd;
        }

        tr:hover {
            background-color: #f5f5f5;
        }

        th {
            background-color: #4CAF50;
            color: white;
        }
    </style>
</head>
<body>
    <h1>File List</h1>
    <table>
        <thead>
            <tr>
                <th>Name</th>
                <th>Size (KB)</th>
                <th>Last Modified</th>
            </tr>
        </thead>
        <tbody>
            {% for file in files %}
            <tr>
                <td><a href="{{ url_for('download_file', filename=file.name) }}">{{ file.name }}</a>
                <td>{{ '%.2f' % (file.size / 1024) }} KB</td>
                <td>{{ file.last_modified }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</body>
</html>