+[% USE HTML %][% USE T8 %][%- USE LxERP -%]
-[%- IF webdav %]
- <tr>
- <td><hr size="3" noshade></td>
- </tr>
- <tr>
- <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
- </tr>
- <table width="100%">
- <tr>
- <td align="left" width="30%"><b>Dateiname</b></td>
- <td align="left" width="70%"><b>Webdavlink</b></td>
- </tr>
- [%- FOREACH file = WEBDAV %]
- <tr>
- <td align="left">[% file.name %]</td>
- <td align="left"><a href="[% file.link %]">[% file.type %]</a></td>
- </tr>
- [%- END %]
- </table>
- </tr>
+[%- IF INSTANCE_CONF.get_webdav %]
+<div id="ui-tabs-webdav">
+<div class="listtop">[%- 'Documents in the WebDAV repository' | $T8 %]</div>
+
+[% IF WEBDAV && WEBDAV.size %]
+ <table>
+ <thead>
+ <tr class="listheading">
+ <th>[% 'File name' | $T8 %]</th>
+ <th>[% 'WebDAV link' | $T8 %]</th>
+ </tr>
+ </thead>
+
+ <tbody>
+[%- FOREACH file = WEBDAV %]
+ <tr class="listrow">
+ <td>[% HTML.escape(file.name) %]</td>
+ <td><a href="[% HTML.escape(file.link) %]">[% HTML.escape(file.type) %]</a></td>
+ </tr>
+[%- END %]
+ </tbody>
+ </table>
+
+[% ELSE %]
+ <p>[% LxERP.t8("There are no documents in the WebDAV directory at the moment.") %]</p>
[% END %]
+</div>
+
+[%- END %]