summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <jan@unhosted.org>2011-10-21 19:09:41 +0200
committerJan-Christoph Borchardt <jan@unhosted.org>2011-10-21 21:00:26 +0200
commitc420001f2b28a619fe844d7366ae3984b38021e9 (patch)
tree3e40f9c524d9b4e8da37697489b1a06b281f09f2 /files/templates
parent92ba000f09882224526373dc04ac8926dc9ca27d (diff)
downloadnextcloud-server-c420001f2b28a619fe844d7366ae3984b38021e9.tar.gz
nextcloud-server-c420001f2b28a619fe844d7366ae3984b38021e9.zip
bold current folder in breadcrumbs
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/part.breadcrumb.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/files/templates/part.breadcrumb.php b/files/templates/part.breadcrumb.php
index 63242dd326c..b26f6097153 100644
--- a/files/templates/part.breadcrumb.php
+++ b/files/templates/part.breadcrumb.php
@@ -1,5 +1,10 @@
- <?php foreach($_["breadcrumb"] as $crumb): ?>
+ <?php for($i=0; $i<count($_["breadcrumb"])-1; $i++):
+ $crumb = $_["breadcrumb"][$i]; ?>
<div class="crumb svg" data-dir='<?php echo $crumb["dir"];?>' style='background-image:url("<?php echo image_path('core','breadcrumb.png');?>")'>
- <a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlspecialchars($crumb["name"]); ?></a>
+ <a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlspecialchars($crumb["name"]); ?></a>
</div>
- <?php endforeach; ?> \ No newline at end of file
+ <?php endfor;
+ $crumb = $_["breadcrumb"][count($_["breadcrumb"])-1] ?>
+ <div class="crumb last svg" data-dir='<?php echo $crumb["dir"];?>' style='background-image:url("<?php echo image_path('core','breadcrumb.png');?>")'>
+ <a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlspecialchars($crumb["name"]); ?></a>
+ </div> \ No newline at end of file