]> source.dussan.org Git - nextcloud-server.git/commitdiff
message and hint for upload if folder is empty
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Fri, 29 Jul 2011 11:01:15 +0000 (13:01 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Fri, 29 Jul 2011 11:01:15 +0000 (13:01 +0200)
files/css/files.css
files/templates/part.list.php

index 56a06a903b3f779394bbbae2ff80480ce662f257..50b61a488d160b344c41c7854574b406405b19e4 100644 (file)
@@ -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; }
index 54606e083e3c19f007977da63b2b013c240a405c..d249455c55c79a79b6238fb4f77c0e135cec27fc 100644 (file)
@@ -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;