diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-04-27 17:58:41 -0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-27 17:58:41 -0300 |
commit | d6e7cee60779d85d05264ba360463ab9eabc7d35 (patch) | |
tree | a70672918e9ebb53d733c8ea4769b2b401060e56 /settings | |
parent | f000e22a97b9bae756cc5977badeffbc7a6852e9 (diff) | |
download | nextcloud-server-d6e7cee60779d85d05264ba360463ab9eabc7d35.tar.gz nextcloud-server-d6e7cee60779d85d05264ba360463ab9eabc7d35.zip |
Fix icons in sidebar on personal page
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/css/settings.css | 3 | ||||
-rw-r--r-- | settings/personal.php | 9 | ||||
-rw-r--r-- | settings/templates/certificates.php | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/settings/css/settings.css b/settings/css/settings.css index 0a1d4e046fe..65709c9578a 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 2c46a9f8dd2..6cbcc330cd9 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -220,8 +220,13 @@ $formsMap = array_map(function($form){ if (preg_match('%(<h2(?P<class>[^>]*)>.*?</h2>)%i', $form, $regs)) { $sectionName = str_replace('<h2'.$regs['class'].'>', '', $regs[0]); $sectionName = str_replace('</h2>', '', $sectionName); - $anchor = strtolower($sectionName); - $anchor = str_replace(' ', '-', $anchor); + if (strpos($regs['class'], 'data-anchor-name') !== false) { + preg_match('%.*data-anchor-name="(?P<anchor>[^"]*)"%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 16f8dda31ad..ac0a2293800 100644 --- a/settings/templates/certificates.php +++ b/settings/templates/certificates.php @@ -1,5 +1,5 @@ <div class="section"> - <h2><?php p($l->t('SSL Root Certificates')); ?></h2> + <h2 data-anchor-name="ssl-root-certificate"><?php p($l->t('SSL Root Certificates')); ?></h2> <table id="sslCertificate" class="grid" data-type="<?php p($_['type']); ?>"> <thead> <tr> |