diff --git a/directory-listing/templates/rc3.html.j2 b/directory-listing/templates/rc3.html.j2 new file mode 100644 index 0000000000000000000000000000000000000000..935bcbd893cf67b08630c2e19e77437af4ce3ab9 --- /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>