summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/templates
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-07 13:48:02 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-07 13:48:02 +0100
commit718830365134cb3f4a68fba03274801cada71fdb (patch)
tree046ce799c67425430b4b41dd756f6dc0e4a7cc14 /apps/files_trashbin/templates
parent97222b1de5349ac31abf518b7fd762b24947e237 (diff)
downloadnextcloud-server-718830365134cb3f4a68fba03274801cada71fdb.tar.gz
nextcloud-server-718830365134cb3f4a68fba03274801cada71fdb.zip
let the home icon link to the files view in the trash bin
Diffstat (limited to 'apps/files_trashbin/templates')
-rw-r--r--apps/files_trashbin/templates/part.breadcrumb.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/apps/files_trashbin/templates/part.breadcrumb.php b/apps/files_trashbin/templates/part.breadcrumb.php
new file mode 100644
index 00000000000..2801e04e9ad
--- /dev/null
+++ b/apps/files_trashbin/templates/part.breadcrumb.php
@@ -0,0 +1,20 @@
+<div class="crumb">
+ <a href="<?php print_unescaped($_['home']); ?>">
+ <img src="<?php print_unescaped(OCP\image_path('core', 'places/home.svg'));?>" class="svg" />
+ </a>
+</div>
+<?php if(count($_["breadcrumb"])):?>
+ <div class="crumb svg"
+ data-dir='<?php print_unescaped($_['baseURL']); ?>'>
+ <a href="<?php p($_['baseURL']); ?>"><?php p($l->t("Deleted Files")); ?></a>
+ </div>
+<?php endif;?>
+<?php for($i=0; $i<count($_["breadcrumb"]); $i++):
+ $crumb = $_["breadcrumb"][$i];
+ $dir = str_replace('+', '%20', urlencode($crumb["dir"]));
+ $dir = str_replace('%2F', '/', $dir); ?>
+ <div class="crumb <?php if($i == count($_["breadcrumb"])-1) p('last');?> svg"
+ data-dir='<?php p($dir);?>'>
+ <a href="<?php p($_['baseURL'].$dir); ?>"><?php p($crumb["name"]); ?></a>
+ </div>
+<?php endfor;