From b6bfc4e801500b0a0facbc7e4c02d8b52ce209a4 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Thu, 19 Jan 2017 02:55:02 +0100 Subject: [PATCH] add icons to admin settings navigation Signed-off-by: Jan-Christoph Borchardt --- settings/css/settings.css | 30 ++++++++++++++++++++++++++++++ settings/img/edit.svg | 1 + settings/img/settings.svg | 1 + settings/img/tag.svg | 1 + settings/img/theming.svg | 1 + settings/img/toggle.svg | 1 + settings/templates/admin/frame.php | 7 +++++-- 7 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 settings/img/edit.svg create mode 100644 settings/img/settings.svg create mode 100644 settings/img/tag.svg create mode 100644 settings/img/theming.svg create mode 100644 settings/img/toggle.svg diff --git a/settings/css/settings.css b/settings/css/settings.css index 9f4ea17376e..f3aa079e35f 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -726,6 +726,36 @@ table.grid td.date{ } /* ADMIN */ + +/* icons for sidebar */ +.nav-icon-server { + background-image: url('../img/admin.svg?v=1'); +} +.nav-icon-sharing { + background-image: url('../img/share.svg?v=1'); +} +.nav-icon-theming { + background-image: url('../img/theming.svg?v=1'); +} +.nav-icon-encryption { + background-image: url('../img/password.svg?v=1'); +} +.nav-icon-workflow { + background-image: url('../img/tag.svg?v=1'); +} +.nav-icon-survey_client { + background-image: url('../img/toggle.svg?v=1'); +} +.nav-icon-logging { + background-image: url('../img/edit.svg?v=1'); +} +.nav-icon-additional { + background-image: url('../img/settings.svg?v=1'); +} +.nav-icon-tips-tricks { + background-image: url('../img/help.svg?v=1'); +} + #security-warning li { list-style: initial; margin: 10px 0; diff --git a/settings/img/edit.svg b/settings/img/edit.svg new file mode 100644 index 00000000000..a8ab7162a46 --- /dev/null +++ b/settings/img/edit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/settings/img/settings.svg b/settings/img/settings.svg new file mode 100644 index 00000000000..2160b673e30 --- /dev/null +++ b/settings/img/settings.svg @@ -0,0 +1 @@ + diff --git a/settings/img/tag.svg b/settings/img/tag.svg new file mode 100644 index 00000000000..464ab936a74 --- /dev/null +++ b/settings/img/tag.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/settings/img/theming.svg b/settings/img/theming.svg new file mode 100644 index 00000000000..adf97966c41 --- /dev/null +++ b/settings/img/theming.svg @@ -0,0 +1 @@ + diff --git a/settings/img/toggle.svg b/settings/img/toggle.svg new file mode 100644 index 00000000000..1f3de01ff34 --- /dev/null +++ b/settings/img/toggle.svg @@ -0,0 +1 @@ + \ No newline at end of file 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'); ?>
-
    +
      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("%s", $active, \OCP\Util::sanitizeHTML($anchor), \OCP\Util::sanitizeHTML($sectionName))); + print_unescaped(sprintf("%s", $active, \OCP\Util::sanitizeHTML($anchor), + \OCP\Util::sanitizeHTML($class), + \OCP\Util::sanitizeHTML($sectionName))); } }?>
    -- 2.39.5