From d6e7cee60779d85d05264ba360463ab9eabc7d35 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 27 Apr 2017 17:58:41 -0300 Subject: [PATCH] Fix icons in sidebar on personal page Signed-off-by: Morris Jobke --- apps/encryption/templates/settings-personal.php | 2 +- apps/files_external/css/settings.css | 4 ++++ apps/files_external/templates/settings.php | 2 +- apps/twofactor_backupcodes/templates/personal.php | 2 +- settings/css/settings.css | 3 +++ settings/personal.php | 9 +++++++-- settings/templates/certificates.php | 2 +- 7 files changed, 18 insertions(+), 6 deletions(-) diff --git a/apps/encryption/templates/settings-personal.php b/apps/encryption/templates/settings-personal.php index e2bcb6813b..7d0a26eea9 100644 --- a/apps/encryption/templates/settings-personal.php +++ b/apps/encryption/templates/settings-personal.php @@ -5,7 +5,7 @@ script('encryption', 'settings-personal'); script('core', 'multiselect'); ?>
-

t('Basic encryption module')); ?>

+

t('Basic encryption module')); ?>

diff --git a/apps/files_external/css/settings.css b/apps/files_external/css/settings.css index 610bc2f0e6..bac89e26b0 100644 --- a/apps/files_external/css/settings.css +++ b/apps/files_external/css/settings.css @@ -114,3 +114,7 @@ td.mountPoint, td.backend { width:160px; } #externalStorage .mountOptionsDropdown { margin-right: 40px; } + +.nav-icon-external-storage { + background-image: url('../img/app-dark.svg?v=1'); +} diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php index 9d8c179dd3..bbd79994e3 100644 --- a/apps/files_external/templates/settings.php +++ b/apps/files_external/templates/settings.php @@ -88,7 +88,7 @@ ?> -

t('External storage')); ?>

+

t('External storage')); ?>

'') and $canCreateMounts) print_unescaped(''.$_['dependencies'].''); ?> '> diff --git a/apps/twofactor_backupcodes/templates/personal.php b/apps/twofactor_backupcodes/templates/personal.php index 23b06e2305..3076e16a16 100644 --- a/apps/twofactor_backupcodes/templates/personal.php +++ b/apps/twofactor_backupcodes/templates/personal.php @@ -7,6 +7,6 @@ style('twofactor_backupcodes', 'style'); ?>
-

t('Second-factor backup codes')); ?>

+

t('Second-factor backup codes')); ?>

diff --git a/settings/css/settings.css b/settings/css/settings.css index 0a1d4e046f..65709c9578 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -26,6 +26,9 @@ input#openid, input#webdav { width:20em; } .nav-icon-second-factor-backup-codes { background-image: url('../img/password.svg?v=1'); } +.nav-icon-ssl-root-certificate { + background-image: url('../img/password.svg?v=1'); +} #avatarform { min-width: 145px; diff --git a/settings/personal.php b/settings/personal.php index 2c46a9f8dd..6cbcc330cd 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -220,8 +220,13 @@ $formsMap = array_map(function($form){ if (preg_match('%([^>]*)>.*?)%i', $form, $regs)) { $sectionName = str_replace('', '', $regs[0]); $sectionName = str_replace('', '', $sectionName); - $anchor = strtolower($sectionName); - $anchor = str_replace(' ', '-', $anchor); + if (strpos($regs['class'], 'data-anchor-name') !== false) { + preg_match('%.*data-anchor-name="(?P[^"]*)"%i', $regs['class'], $matches); + $anchor = $matches['anchor']; + } else { + $anchor = strtolower($sectionName); + $anchor = str_replace(' ', '-', $anchor); + } return array( 'anchor' => $anchor, diff --git a/settings/templates/certificates.php b/settings/templates/certificates.php index 16f8dda31a..ac0a229380 100644 --- a/settings/templates/certificates.php +++ b/settings/templates/certificates.php @@ -1,5 +1,5 @@
-

t('SSL Root Certificates')); ?>

+

t('SSL Root Certificates')); ?>