From 905455fca3b81db5742f992d41bc127e52a6b09e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 20 Apr 2016 11:05:41 +0200 Subject: [PATCH] WebDAV: freundliche Meldung anstelle leerer Tabelle, wenn keine Dokumente vorhanden --- locale/de/all | 1 + templates/webpages/webdav/_list.html | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/locale/de/all b/locale/de/all index 1fe9ed759..f405339e2 100755 --- a/locale/de/all +++ b/locale/de/all @@ -3011,6 +3011,7 @@ $self->{texts} = { 'There are invalid taxnumbers in use.' => 'Es werden ungültige Steuerautomatik-Konten benutzt.', 'There are invalid transactions in your database.' => 'Sie haben ungültige Buchungen in Ihrer Datenbank.', 'There are invoices which could not be paid by bank transaction #1 (Account number: #2, bank code: #3)!' => 'Einige Rechnungen konnten nicht durch die Bankbewegung #1 (Kontonummer: #2, Bankleitzahl: #3) bezahlt werden!', + 'There are no documents in the WebDAV directory at the moment.' => 'Es befinden sich im WebDAV-Verzeichnis momentan keine Dokumente.', 'There are no entries in the background job history.' => 'Es gibt keine Einträge im Hintergrund-Job-Verlauf.', 'There are no entries that match the filter.' => 'Es gibt keine Einträge, auf die der Filter zutrifft.', 'There are no items in stock.' => 'Dieser Artikel ist nicht eingelagert.', diff --git a/templates/webpages/webdav/_list.html b/templates/webpages/webdav/_list.html index 58f2d29e2..beedef701 100644 --- a/templates/webpages/webdav/_list.html +++ b/templates/webpages/webdav/_list.html @@ -1,9 +1,10 @@ -[% USE HTML %][% USE T8 %] +[% USE HTML %][% USE T8 %][%- USE LxERP -%] [%- IF INSTANCE_CONF.get_webdav %]
[%- 'Documents in the WebDAV repository' | $T8 %]
+[% IF WEBDAV && WEBDAV.size %] @@ -21,6 +22,10 @@ [%- END %]
+ +[% ELSE %] +

[% LxERP.t8("There are no documents in the WebDAV directory at the moment.") %]

+[% END %]
[%- END %] -- 2.20.1