summaryrefslogtreecommitdiffstats
path: root/settings/templates/admin
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-01-19 02:55:02 +0100
committerJoas Schilling <coding@schilljs.com>2017-01-19 10:42:21 +0100
commitb6bfc4e801500b0a0facbc7e4c02d8b52ce209a4 (patch)
treeeeaf00aa6016fe2dcb25055f36aa61102a3216f6 /settings/templates/admin
parent6697415d499ebebf157794802f77b65ea59fd8e8 (diff)
downloadnextcloud-server-b6bfc4e801500b0a0facbc7e4c02d8b52ce209a4.tar.gz
nextcloud-server-b6bfc4e801500b0a0facbc7e4c02d8b52ce209a4.zip
add icons to admin settings navigation
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'settings/templates/admin')
-rw-r--r--settings/templates/admin/frame.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/settings/templates/admin/frame.php b/settings/templates/admin/frame.php
index 761d76c4434..7ae6b5fa012 100644
--- a/settings/templates/admin/frame.php
+++ b/settings/templates/admin/frame.php
@@ -29,13 +29,16 @@ script('files', 'jquery.fileupload');
?>
<div id="app-navigation">
- <ul>
+ <ul class="with-icon">
<?php foreach($_['forms'] as $form) {
if (isset($form['anchor'])) {
$anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]);
+ $class = 'nav-icon-' . $form['anchor'];
$sectionName = $form['section-name'];
$active = $form['active'] ? ' class="active"' : '';
- print_unescaped(sprintf("<li%s><a href='%s'>%s</a></li>", $active, \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName)));
+ print_unescaped(sprintf("<li%s><a href='%s' class='%s'>%s</a></li>", $active, \OCP\Util::sanitizeHTML($anchor),
+ \OCP\Util::sanitizeHTML($class),
+ \OCP\Util::sanitizeHTML($sectionName)));
}
}?>
</ul>