File size: 2,861 Bytes
f2362b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="generator" content="WsgiDAV/{{ version }}">
  <title>WsgiDAV - Index of {{ display_path }} </title>
  <link rel="shortcut icon" href="{{ htdocs }}/favicon.ico">
  <link rel="stylesheet" href="{{ htdocs }}/style.css" />
  <script defer src="{{ htdocs }}/script.js"></script>
  <style type="text/css"> A {behavior: url(#default#AnchorClick);} </style>
</head>

<body onload="onLoad()">

  <h1>
    {%- if config.icon %}
    <img class="logo" alt="WsgiDAV" title="WsgiDAV" src="{{ htdocs }}/logo.png">
    {% endif -%}
    Index of {{ display_path }}
  </h1>

  {% if config.davmount_links %}
  <p class="links">
    <a title="Open this folder in a registered WebDAV client." href="{{ url }}?davmount">Mount</a>
  </p>
  {% endif %}

  {%- if user_name and config.show_user %}
  <p class="auth-user">
    Authenticated user: "{{user_name}}", realm: "{{realm}}", access: {{access}}.
    {%- if is_authenticated and config.show_logout %}
      <a title="Logout current user" href="{{ url }}?logout" target="_blank" rel="noopener noreferrer">Logout</a>
    {% endif -%}
    {%- if user_roles %}
      , roles: {{ user_roles }}
    {% endif -%}
  </p>
  {% endif -%}

  <hr>

  <table class="dir-listing" onclick="return onClickTable(event)">

    <colgroup>
      <col>
      <col>
      <col class="right">
      <col class="right">
    </colgroup>

    <thead>
      <tr>
        <th>Name</th>
        <th>Type</th>
        <th>Size</th>
        <th>Last modified</th>
      </tr>
    </thead>

    <tbody>
      {%- if not is_top_dir %}
      <tr class="directory">
          <td>
            <a href="..">..</a>
          </td>
        <td>Directory</td>
        <td>-</td>
        <td></td>
      </tr>
      {% endif -%}

      {% for row in rows %}
      <tr class="{{ row.tr_class }}">
        <td>
          <a class="{{ row.a_class }}" href="{{row.href}}" {% if row.ofe_prefix %} data-ofe="{{row.ofe_prefix}}" {% endif %} >
              {{row.display_name}}
          </a>
          {%- if row.href_2 %}
            <a class="{{ row.a_class_2 }}" href="{{row.href_2}}" {% if row.ofe_prefix_2%} data-ofe="{{row.ofe_prefix_2}}" {% endif %} >
                {{row.display_name_2}}
            </a>
          {% endif -%}
          {%- if row.add_link_html %}
              {{row.add_link_html | safe}}
          {% endif -%}
        </td>
        <td>{{ row.display_type }}</td>
        <td>{{ row.str_size }}</td>
        <td>{{ row.str_modified }}</td>
      </tr>
      {% endfor %}
    </tbody>
  </table>

  <hr>

  {% if trailer %}
  <p class="trailer">{{ trailer | safe }}</p>
  {% endif %}

  <object id="winFirefoxPlugin" type="application/x-sharepoint"
      width="0" height="0" style="visibility: hidden;"></object>

</body>
</html>