diff options
author | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-07-07 01:27:16 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <JanCBorchardt@fsfe.org> | 2011-07-07 01:27:16 +0200 |
commit | e3fd72dc1627ef1cbfd4c525ea5428e68942e80a (patch) | |
tree | ce21e8d9a788bbb6710956709018067ff31ab391 /files/templates/part.list.php | |
parent | aa3b76e3fb8e46182ca892d0e8bf468a8cf0c3a0 (diff) | |
download | nextcloud-server-e3fd72dc1627ef1cbfd4c525ea5428e68942e80a.tar.gz nextcloud-server-e3fd72dc1627ef1cbfd4c525ea5428e68942e80a.zip |
introducing simple file size, only MB as unit, details on hover
Diffstat (limited to 'files/templates/part.list.php')
-rw-r--r-- | files/templates/part.list.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/files/templates/part.list.php b/files/templates/part.list.php index 443990af34f..fd7f3f644df 100644 --- a/files/templates/part.list.php +++ b/files/templates/part.list.php @@ -1,9 +1,9 @@ - <?php foreach($_["files"] as $file): ?> - <tr data-file='<?php echo $file['name'];?>' data-type='<?php echo ($file["type"] == "dir")?'dir':'file'?>' data-mime='<?php echo $file["mime"]?>'> + <?php foreach($_['files'] as $file): ?> + <tr data-file="<?php echo $file['name'];?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mime']?>"> <td class="selection"><input type="checkbox" /></td> - <td class="filename"><a style="background-image:url(<?php if($file["type"] == "dir") echo mimetype_icon("dir"); else echo mimetype_icon($file["mime"]); ?>)" href="<?php if($file["type"] == "dir") echo link_to("files", "index.php?dir=".$file["directory"]."/".$file["name"]); else echo link_to("files", "download.php?file=".$file["directory"]."/".$file["name"]); ?>" title=""><?php if($file["type"] == "dir") echo "<strong>"; echo htmlspecialchars($file["name"]); if($file["type"] == "dir") echo "</strong>"; ?></a></td> - <td class="filesize"><?php echo human_file_size($file["size"]); ?></td> - <td class="date"><?php echo $file["date"]; ?></td> - <td class="fileaction"><a href="" title="+" class='dropArrow'></a></td> + <td class="filename"><a style="background-image:url(<?php if($file['type'] == 'dir') echo mimetype_icon('dir'); else echo mimetype_icon($file['mime']); ?>)" href="<?php if($file['type'] == 'dir') echo link_to('files', 'index.php?dir='.$file['directory'].'/'.$file['name']); else echo link_to('files', 'download.php?file='.$file['directory'].'/'.$file['name']); ?>" title=""><?php if($file['type'] == 'dir') echo "<strong>"; echo htmlspecialchars($file['name']); if($file['type'] == 'dir') echo "</strong>"; ?></a></td> + <td class="filesize" title="<?php echo human_file_size($file['size']); ?>"><?php echo simple_file_size($file['size']); ?></td> + <td class="date"><?php echo $file['date']; ?></td> + <td class="fileaction"><a href="" title="+" class="dropArrow"></a></td> </tr> <?php endforeach; ?> |