WebDAV: freundliche Meldung anstelle leerer Tabelle, wenn keine Dokumente vorhanden
[kivitendo-erp.git] / templates / webpages / webdav / _list.html
index 58f2d29..beedef7 100644 (file)
@@ -1,9 +1,10 @@
-[% 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">
 [%- END %]
   </tbody>
  </table>
+
+[% ELSE %]
+ <p>[% LxERP.t8("There are no documents in the WebDAV directory at the moment.") %]</p>
+[% END %]
 </div>
 
 [%- END %]