Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / webdav / _list.html
index 58f2d29..3869e09 100644 (file)
@@ -1,14 +1,15 @@
-[% USE HTML %][% USE T8 %]
+[% USE HTML %][% USE T8 %][%- USE LxERP -%]
 
 [%- 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">
-    <td>[% 'File name' | $T8 %]</td>
-    <td>[% 'WebDAV link' | $T8 %]</td>
+    <th>[% 'File name' | $T8 %]</th>
+    <th>[% 'WebDAV link' | $T8 %]</th>
    </tr>
   </thead>
 
 [%- END %]
   </tbody>
  </table>
+
+[% ELSE %]
+ <p>[% LxERP.t8("There are no documents in the WebDAV directory at the moment.") %]</p>
+[% END %]
 </div>
 
 [%- END %]