summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-07 21:19:18 +0200
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>2011-07-07 21:19:18 +0200
commit01a9d916e7fe477f6fb42a534e3265ddbe00fddd (patch)
treeb72bb5a8e3704a5266e38f8fa0842494878b8c4b /core
parentd31349b781040ba394d8b9f9bf0e0f06f33f5b9e (diff)
downloadnextcloud-server-01a9d916e7fe477f6fb42a534e3265ddbe00fddd.tar.gz
nextcloud-server-01a9d916e7fe477f6fb42a534e3265ddbe00fddd.zip
mark active navigation subentry
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.css1
-rw-r--r--core/templates/layout.admin.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index c28006ab5c0..a0dd69516cf 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -211,6 +211,7 @@ form.searchbox { display:inline; position:fixed; top:2em; right:10em; margin:0;
#plugins a.active, #plugins a:hover, #plugins a:focus, #plugins a.selected { background-color:#ccc; border-top:1px solid #ccc; border-bottom:1px solid #ccc; color:#000; outline:0; }
#plugins a:active { outline:0; }
#plugins .subentry { background-color:#ddd; border-top:1px solid #aaa; border-bottom:1px solid #ccc; color:#000; outline:0; }
+#plugins .subentry.active { background-color:#bbb; border-top:1px solid #aaa; border-bottom:1px solid #ccc; color:#000; outline:0; }
/* CONTENT ------------------------------------------------------------------ */
#content { margin:7em 0 0 16em; }
diff --git a/core/templates/layout.admin.php b/core/templates/layout.admin.php
index 026e1272237..aa1de65c084 100644
--- a/core/templates/layout.admin.php
+++ b/core/templates/layout.admin.php
@@ -43,7 +43,7 @@
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li>
<?php if( sizeof( $entry["subnavigation"] )): ?>
<?php foreach($entry["subnavigation"] as $subentry):?>
- <li><a href="<?php echo $subentry['href']; ?>" title="" <?php if( $subentry["active"] ): ?> class="active"<?php endif; ?>><?php echo $subentry['name'] ?></a></li>
+ <li><a href="<?php echo $subentry['href']; ?>" title="" <?php if( $subentry['active'] ): ?>class="active"<?php endif; ?>><?php echo $subentry['name'] ?></a></li>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
@@ -52,7 +52,7 @@
<li><a style="background-image:url(<?php echo $entry['icon']; ?>)" href="<?php echo $entry['href']; ?>" title="" <?php if( $entry["active"] ): ?> class="active"<?php endif; ?>><?php echo $entry['name'] ?></a></li>
<?php if( sizeof( $entry["subnavigation"] )): ?>
<?php foreach($entry["subnavigation"] as $subentry):?>
- <li><a class="subentry" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
+ <li><a class="subentry<?php if( $subentry['active'] ): ?> active<?php endif; ?>" href="<?php echo $subentry['href']; ?>" title=""><?php echo $subentry['name'] ?></a></li>
<?php endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>