summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-20 05:07:58 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-08-20 05:07:58 +0200
commitd9aae20003eb670b7bf86708016473969088066a (patch)
treee51450959802c1d32ecbcdeb0036efdc0842c2d1 /files
parentc2f0fe51c427374e918b72c28c521df27e614cae (diff)
downloadnextcloud-server-d9aae20003eb670b7bf86708016473969088066a.tar.gz
nextcloud-server-d9aae20003eb670b7bf86708016473969088066a.zip
more valid HTML, alt attributes, refactored pagenavi etc.
Diffstat (limited to 'files')
-rw-r--r--files/css/files.css2
-rw-r--r--files/index.php1
-rw-r--r--files/templates/index.php12
-rw-r--r--files/templates/part.list.php1
4 files changed, 8 insertions, 8 deletions
diff --git a/files/css/files.css b/files/css/files.css
index a515cee959b..651b99923c9 100644
--- a/files/css/files.css
+++ b/files/css/files.css
@@ -24,7 +24,7 @@
.file_upload_form, .file_upload_wrapper, .file_upload_start, .file_upload_filename, #file_upload_submit { cursor:pointer; }
/* 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; }
+#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:#f8f8f8; height:1em; }
tbody tr.selected { background-color:#eee; }
diff --git a/files/index.php b/files/index.php
index e62c9246448..059546391b6 100644
--- a/files/index.php
+++ b/files/index.php
@@ -81,6 +81,7 @@ $tmpl = new OC_Template( "files", "index", "user" );
$tmpl->assign( "fileList", $list->fetchPage() );
$tmpl->assign( "breadcrumb", $breadcrumbNav->fetchPage() );
$tmpl->assign( 'dir', $dir);
+$tmpl->assign( "files", $files );
$tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign( 'uploadMaxHumanFilesize', OC_Helper::humanFileSize($maxUploadFilesize));
$tmpl->printPage();
diff --git a/files/templates/index.php b/files/templates/index.php
index f5a212add48..4e105811f05 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -5,9 +5,9 @@
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
<input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
- <div class="file_upload_wrapper" class="svg">
+ <div class="file_upload_wrapper svg">
<input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload'); ?>"/>
- <input class="file_upload_start" class="file_upload_start" type="file" name='files[]'/>
+ <input class="file_upload_start" type="file" name='files[]'/>
<a href="#" class="file_upload_button_wrapper" onclick="return false;" title="<?php echo 'max. '.$_['uploadMaxHumanFilesize'] ?>"></a>
</div>
<iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
@@ -21,7 +21,9 @@
</div>
<div id='notification'></div>
-<table cellspacing="0">
+<div id="emptyfolder" <?php if(count($_['files'])) echo 'style="display:none;"';?>><?php echo $l->t('Nothing in here. Upload something!')?></div>
+
+<table>
<thead>
<tr>
<th id='headerName'>
@@ -43,8 +45,6 @@
<div id="uploadsize-message" title="<?php echo $l->t('Upload too large')?>">
<p>
- <?php echo $l->t( 'The files you are trying to upload exceed the maximum size for file uploads on this server.' ); ?>
+ <?php echo $l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.');?>
</p>
</div>
-
-<span id="file_menu"/>
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
index 0484f90c268..5995976f73a 100644
--- a/files/templates/part.list.php
+++ b/files/templates/part.list.php
@@ -1,4 +1,3 @@
- <span id="emptyfolder" <?php if(count($_['files'])) echo 'style="display:none;"';?>><?php echo $l->t('Nothing in here. Upload something!')?></span>
<?php foreach($_['files'] as $file):
$simple_file_size = simple_file_size($file['size']);
$simple_size_color = intval(200-$file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey; megabytes*2