LPX55 commited on
Commit
f2362b5
·
verified ·
1 Parent(s): 4d73c74

Create htdocs/template.html

Browse files
Files changed (1) hide show
  1. dir_browser/htdocs/template.html +105 -0
dir_browser/htdocs/template.html ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <meta name="generator" content="WsgiDAV/{{ version }}">
6
+ <title>WsgiDAV - Index of {{ display_path }} </title>
7
+ <link rel="shortcut icon" href="{{ htdocs }}/favicon.ico">
8
+ <link rel="stylesheet" href="{{ htdocs }}/style.css" />
9
+ <script defer src="{{ htdocs }}/script.js"></script>
10
+ <style type="text/css"> A {behavior: url(#default#AnchorClick);} </style>
11
+ </head>
12
+
13
+ <body onload="onLoad()">
14
+
15
+ <h1>
16
+ {%- if config.icon %}
17
+ <img class="logo" alt="WsgiDAV" title="WsgiDAV" src="{{ htdocs }}/logo.png">
18
+ {% endif -%}
19
+ Index of {{ display_path }}
20
+ </h1>
21
+
22
+ {% if config.davmount_links %}
23
+ <p class="links">
24
+ <a title="Open this folder in a registered WebDAV client." href="{{ url }}?davmount">Mount</a>
25
+ </p>
26
+ {% endif %}
27
+
28
+ {%- if user_name and config.show_user %}
29
+ <p class="auth-user">
30
+ Authenticated user: "{{user_name}}", realm: "{{realm}}", access: {{access}}.
31
+ {%- if is_authenticated and config.show_logout %}
32
+ <a title="Logout current user" href="{{ url }}?logout" target="_blank" rel="noopener noreferrer">Logout</a>
33
+ {% endif -%}
34
+ {%- if user_roles %}
35
+ , roles: {{ user_roles }}
36
+ {% endif -%}
37
+ </p>
38
+ {% endif -%}
39
+
40
+ <hr>
41
+
42
+ <table class="dir-listing" onclick="return onClickTable(event)">
43
+
44
+ <colgroup>
45
+ <col>
46
+ <col>
47
+ <col class="right">
48
+ <col class="right">
49
+ </colgroup>
50
+
51
+ <thead>
52
+ <tr>
53
+ <th>Name</th>
54
+ <th>Type</th>
55
+ <th>Size</th>
56
+ <th>Last modified</th>
57
+ </tr>
58
+ </thead>
59
+
60
+ <tbody>
61
+ {%- if not is_top_dir %}
62
+ <tr class="directory">
63
+ <td>
64
+ <a href="..">..</a>
65
+ </td>
66
+ <td>Directory</td>
67
+ <td>-</td>
68
+ <td></td>
69
+ </tr>
70
+ {% endif -%}
71
+
72
+ {% for row in rows %}
73
+ <tr class="{{ row.tr_class }}">
74
+ <td>
75
+ <a class="{{ row.a_class }}" href="{{row.href}}" {% if row.ofe_prefix %} data-ofe="{{row.ofe_prefix}}" {% endif %} >
76
+ {{row.display_name}}
77
+ </a>
78
+ {%- if row.href_2 %}
79
+ <a class="{{ row.a_class_2 }}" href="{{row.href_2}}" {% if row.ofe_prefix_2%} data-ofe="{{row.ofe_prefix_2}}" {% endif %} >
80
+ {{row.display_name_2}}
81
+ </a>
82
+ {% endif -%}
83
+ {%- if row.add_link_html %}
84
+ {{row.add_link_html | safe}}
85
+ {% endif -%}
86
+ </td>
87
+ <td>{{ row.display_type }}</td>
88
+ <td>{{ row.str_size }}</td>
89
+ <td>{{ row.str_modified }}</td>
90
+ </tr>
91
+ {% endfor %}
92
+ </tbody>
93
+ </table>
94
+
95
+ <hr>
96
+
97
+ {% if trailer %}
98
+ <p class="trailer">{{ trailer | safe }}</p>
99
+ {% endif %}
100
+
101
+ <object id="winFirefoxPlugin" type="application/x-sharepoint"
102
+ width="0" height="0" style="visibility: hidden;"></object>
103
+
104
+ </body>
105
+ </html>