aboutsummaryrefslogtreecommitdiffstats
path: root/files
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
parent92ba000f09882224526373dc04ac8926dc9ca27d (diff)
downloadnextcloud-server-c420001f2b28a619fe844d7366ae3984b38021e9.tar.gz
nextcloud-server-c420001f2b28a619fe844d7366ae3984b38021e9.zip
bold current folder in breadcrumbs
Diffstat (limited to 'files')
-rw-r--r--files/css/files.css2
-rw-r--r--files/templates/part.breadcrumb.php11
2 files changed, 9 insertions, 4 deletions
diff --git a/files/css/files.css b/files/css/files.css
index c7d39d114b3..ac1f523f862 100644
--- a/files/css/files.css
+++ b/files/css/files.css
@@ -34,7 +34,7 @@ span.extention { opacity:0; -webkit-transition:opacity 500ms; -moz-transition:op
tr:hover span.extention { opacity:1; }
div.crumb { float:left; display:block; background:no-repeat right 0; padding:.75em 1.5em 0 1em; height:2.9em; }
div.crumb:first-child { padding-left:1em; }
-div.crumb:last-child { font-weight:bold; }
+div.crumb.last { font-weight:bold; }
table tr.mouseOver td { background-color:#eee; }
table th { height:2em; padding:0 .5em; color:#999; }
table th .name { float:left; margin-left:.5em; }
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