Projekte: Leeren Reiter "Projekt-Details" entfernt.
[kivitendo-erp.git] / templates / webpages / webdav / _list.html
index 2e1d1e4..3869e09 100644 (file)
@@ -1,23 +1,31 @@
-[% USE HTML %][% USE T8 %]
+[% USE HTML %][% USE T8 %][%- USE LxERP -%]
 
-[%- IF conf_webdav %]
+[%- IF INSTANCE_CONF.get_webdav %]
 <div id="ui-tabs-webdav">
+<div class="listtop">[%- 'Documents in the WebDAV repository' | $T8 %]</div>
 
- <div class="listtop" align="left">[% 'Documents in the WebDAV repository' | $T8 %]</div>
-
- <table width="100%">
-  <tr>
-   <td align="left" width="30%"><b>[% 'File name' | $T8 %]</b></td>
-   <td align="left" width="70%"><b>[% 'WebDAV link' | $T8 %]</b></td>
-  </tr>
+[% 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>
-   <td align="left">[% HTML.escape(file.name) %]</td>
-   <td align="left"><a href="[% HTML.escape(file.link) %]">[% HTML.escape(file.type) %]</a></td>
-  </tr>
+   <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 %]