summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-30 14:42:58 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-07-30 14:44:22 +0200
commit78d41a03e074c708d5f6082fd299bdbb3d545f73 (patch)
tree1e654bcb63184f7c937699024d64c79b31dc88b0 /files/templates
parent95ec75b919f58fb55e561789d8a54d59312c7e19 (diff)
downloadnextcloud-server-78d41a03e074c708d5f6082fd299bdbb3d545f73.tar.gz
nextcloud-server-78d41a03e074c708d5f6082fd299bdbb3d545f73.zip
automatically hide show/hide the empty folder message
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/part.list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
index 40586664328..8f55440fe48 100644
--- a/files/templates/part.list.php
+++ b/files/templates/part.list.php
@@ -1,5 +1,5 @@
- <?php if(!$_['files']) echo '<span id="emptyfolder">Nothing in here. Upload something!<style>.file_upload_filename { background-color:#ffc100; border:#dda600 1px solid; }</style></span>';
- foreach($_['files'] as $file):
+ <span id="emptyfolder" <?php if(count($_['files'])) echo 'style="display:none;"';?>>Nothing in here. Upload something!</span>
+ <?php foreach($_['files'] as $file):
$simple_file_size = simple_file_size($file['size']);
$simple_size_color = 200-intval($file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey
if($simple_size_color<0) $simple_size_color = 0;