summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-29 13:01:15 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-29 13:01:15 +0200
commit46400a8124240679b7be4ae50ee932be31b18e2e (patch)
treea21806220e23838bb92a4a3de0cf7a53663b4437
parent72402ff143468523656090682c0bb1681af0fc32 (diff)
downloadnextcloud-server-46400a8124240679b7be4ae50ee932be31b18e2e.tar.gz
nextcloud-server-46400a8124240679b7be4ae50ee932be31b18e2e.zip
message and hint for upload if folder is empty
-rw-r--r--files/css/files.css1
-rw-r--r--files/templates/part.list.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/files/css/files.css b/files/css/files.css
index 56a06a903b3..50b61a488d1 100644
--- a/files/css/files.css
+++ b/files/css/files.css
@@ -14,6 +14,7 @@
.file_upload_target { display:none; }
/* FILE TABLE */
+span#emptyfolder { position:absolute; margin:10em 0 0 10em; font-size:1.5em; font-weight:bold; color:#888; text-shadow:#fff 0 1px 0; }
table { position:relative; top:37px; width:100%; }
tbody tr:hover, tbody tr:active, tbody tr.selected { background-color:#eee; }
tbody a { color:#000; }
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
index 54606e083e3..d249455c55c 100644
--- a/files/templates/part.list.php
+++ b/files/templates/part.list.php
@@ -1,4 +1,5 @@
- <?php foreach($_['files'] as $file):
+ <?php if(!$_['files']) echo '<span id="emptyfolder">Nothing in here. Upload something!</span><style>.file_upload_filename { background-color:#ffc100; border:#dda600 1px solid; }</style>';
+ foreach($_['files'] as $file):
$simple_file_size = simple_file_size($file['size']);
$simple_size_color = 200-intval($file['size']/(1024*1024)*5);
if($simple_size_color<0) $simple_size_color = 0;