mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Small fixes
- Make count smaller so it’ll fit. - Change color of badge based on unread notifications or not.
This commit is contained in:
@@ -1773,7 +1773,7 @@ label {
|
||||
.badge-navbar-user{
|
||||
background:red;
|
||||
border-radius: 40%;
|
||||
font-size: 60%;
|
||||
font-size: 50%;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
padding:5px;
|
||||
|
||||
@@ -492,7 +492,11 @@ if(is_file("includes/print-menubar-custom.inc.php")) {
|
||||
<?php
|
||||
|
||||
$notifications = new ObjCache('notifications');
|
||||
echo('<a href="#" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"><i class="fa fa-user fa-fw fa-lg fa-nav-icons"></i><span class="badge badge-navbar-user">'.($notifications['sticky_count']+$notifications['count']).'</span></a>');
|
||||
$style = '';
|
||||
if (empty($notifications['count']) && empty($notifications['sticky_count'])) {
|
||||
$style = 'style="background-color:grey; color:white;"';
|
||||
}
|
||||
echo('<a href="#" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"><i class="fa fa-user fa-fw fa-lg fa-nav-icons"></i><span class="badge badge-navbar-user" '.$style.'>'.($notifications['sticky_count']+$notifications['count']).'</span></a>');
|
||||
?>
|
||||
<ul class="dropdown-menu">
|
||||
<li role="presentation" class="dropdown-header"> Settings</li>
|
||||
@@ -510,7 +514,7 @@ if ($_SESSION['authenticated']) {
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"><i class="fa fa-cog fa-fw fa-lg fa-nav-icons"></i></a>
|
||||
<a href="#" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown" style="margin-left:5px"><i class="fa fa-cog fa-fw fa-lg fa-nav-icons"></i></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li role="presentation" class="dropdown-header"> Settings</li>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user