mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: mono theme panel headers black (#5705)
Fixes issue where the librenms_logo_mono.svg is now loaded by making the background black to match the logo. Update twofactor.lib.php. Remove unused if statement
This commit is contained in:
committed by
Neil Lathwood
parent
5cdaee16f6
commit
307e5ae500
@@ -22,6 +22,16 @@
|
||||
color: black;
|
||||
}
|
||||
|
||||
.panel-default>.panel-heading {
|
||||
background: black;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.panel-default>.panel-heading .icon-theme,
|
||||
.panel-default>.panel-heading a:visited,
|
||||
.panel-default>.panel-heading a:link {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.twitter-typeahead .tt-hint {
|
||||
border-color: #000 !important;
|
||||
|
||||
@@ -161,7 +161,7 @@ function verify_hotp($key, $otp, $counter = false)
|
||||
/**
|
||||
* Print TwoFactor Input-Form
|
||||
* @param boolean $form Include FORM-tags
|
||||
* @return void|string
|
||||
* @return string
|
||||
*/
|
||||
function twofactor_form($form = true)
|
||||
{
|
||||
@@ -174,7 +174,7 @@ function twofactor_form($form = true)
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
<img src="images/librenms_logo_light.svg">
|
||||
<img src="' . $config['title_image'] . '">
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
@@ -189,7 +189,7 @@ function twofactor_form($form = true)
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<button type="submit" class="btn btn-default btn-block" name="submit" type="submit">Login</button>
|
||||
<button type="submit" class="btn btn-default btn-block" name="submit">Login</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
@@ -8,13 +8,7 @@ if ($config['twofactor'] && isset($twofactorform)) {
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">
|
||||
<?php
|
||||
if ($config['title_image']) {
|
||||
echo '<img src="' . $config['title_image'] . '">';
|
||||
} else {
|
||||
echo '<img src="images/librenms_logo_light.svg">';
|
||||
}
|
||||
?>
|
||||
<?php echo '<img src="' . $config['title_image'] . '">'; ?>
|
||||
</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
Reference in New Issue
Block a user