From 6abb7530389712f4c4f37ea4950d867bee3c1bfc Mon Sep 17 00:00:00 2001
From: psy <psy@darmstadt.ccc.de>
Date: Fri, 17 Dec 2021 16:40:04 +0100
Subject: [PATCH] add template for rc3

---
 directory-listing/templates/rc3.html.j2 | 66 +++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
 create mode 100644 directory-listing/templates/rc3.html.j2

diff --git a/directory-listing/templates/rc3.html.j2 b/directory-listing/templates/rc3.html.j2
new file mode 100644
index 0000000..935bcbd
--- /dev/null
+++ b/directory-listing/templates/rc3.html.j2
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        <meta http-equiv="content-type" content="text/html; charset=utf-8">
+        <meta name="viewport" content="width=device-width">
+        <style type="text/css">
+            body,html {
+                background: #fff;
+                font-family: "Bitstream Vera Sans","Lucida Grande","Lucida Sans Unicode",Lucidux,Verdana,Lucida,sans-serif;
+            }
+            tr:nth-child(even) {
+                background:#f4f4f4;
+            }
+            th,td {
+                padding:0.1em 0.5em;
+            }
+            th {
+                text-align:left;
+                font-weight:bold;
+                background:#eee;
+                border-bottom:1px solid #aaa;
+            }
+            #list {
+                border:1px solid #aaa;
+                width:100%;
+            }
+            a {
+                color:#a33;
+            }
+            a:hover {
+                color:#e33;
+            }
+        </style>
+    </head>
+    <body>
+        <h1>Index of /{{ path }}</h1>
+        <table id="list">
+            <thead>
+                <tr>
+                    <th style="width:55%">
+                        File Name
+                    </th>
+                    <th style="width:20%">
+                        File Size</th>
+                </tr>
+            </thead>
+            <tbody>
+                <tr>
+                    <td class="link">
+                        <a href="../">Parent directory/</a>
+                    </td>
+                    <td class="size">-</td>
+                </tr>
+                {% for entry, stat, is_dir in entries if not entry.startswith('.') %}
+                <tr>
+                    <td class="link">
+                        <a href="{{ entry + ('/' if is_dir else '') }}" title="{{ entry }}">{{ entry  + ('/' if is_dir else '') }}</a>
+                    </td>
+                    <td class="size">{{ '-' if is_dir else stat.st_size|filesizeformat }}</td>
+                </tr>
+                {% endfor  %}
+            </tbody>
+        </table>
+        <p><a href="https://legal.rc3.world">Impressum - Datenschutzerklärung</a></p>
+    </body>
+</html>
-- 
GitLab