summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-17 15:59:06 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-17 15:59:06 +0200
commitee4d087e72ab9a91baf0681a5d4ee6582ba4fd37 (patch)
tree44ec735e0229cda9fc169f4306441d4a6fe99e14 /files/templates
parent4b0a3163c8e7b89f51c130736cdb5fa98a934ded (diff)
downloadnextcloud-server-ee4d087e72ab9a91baf0681a5d4ee6582ba4fd37.tar.gz
nextcloud-server-ee4d087e72ab9a91baf0681a5d4ee6582ba4fd37.zip
don't reload the whole page after file upload
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/index.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/files/templates/index.php b/files/templates/index.php
index 40113c9fe0c..5277441b535 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -17,10 +17,7 @@ name="file_upload_target" src=""></iframe></form>
</div>
<p class="nav">
- <a href="<?php echo link_to("files", "index.php?dir=/"); ?>"><img src="<?php echo image_path("", "actions/go-home.png"); ?>" alt="Root" /></a>
- <?php foreach($_["breadcrumb"] as $crumb): ?>
- <a href="<?php echo link_to("files", "index.php?dir=".$crumb["dir"]); ?>"><?php echo $crumb["name"]; ?></a>
- <?php endforeach; ?>
+ <?php echo($_['breadcrumb']); ?>
</p>
<table cellspacing="0">
@@ -33,16 +30,8 @@ name="file_upload_target" src=""></iframe></form>
<th></th>
</tr>
</thead>
- <tbody>
- <?php foreach($_["files"] as $file): ?>
- <tr>
- <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 echo $file["name"]; ?></a></td>
- <td class="filesize"><?php echo human_file_size($file["size"]); ?></td>
- <td class="date"><?php if($file["type"] != "dir") echo $file["date"]; ?></td>
- <td class="fileaction"><a href="" title=""><img src="images/drop-arrow.png" alt="+" /></a></td>
- </tr>
- <?php endforeach; ?>
+ <tbody id="fileList">
+ <?php echo($_['fileList']); ?>
</tbody>
</table>