Author:   Lars Michelsen <[email protected]>
Date:     Fri Sep 23 10:34:03 2011 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Sep 23 10:34:03 2011 +0200

Bugfix: Fixed styling of maps with config errors in sidebar

---

 ChangeLog                                     |    1 +
 share/userfiles/templates/default.css         |    1 +
 share/userfiles/templates/default.header.html |    2 +-
 3 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index be38c3e..7636299 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -44,6 +44,7 @@ Frontend
     disable the background image
   * Bugfix: std_speedometer.php fixed min/max handling (Thanks to foxkilo)
   * Bugfix: Fixed broken URL handling in e.g. rotation pools
+  * Bugfix: Fixed styling of maps with config errors in sidebar
   * Readded the "edit" action to the maps module. In this mode all object are
     automatically unlocked and changes to the lock state are not persisted
   * Also disabling the object left click actions in unlocked mode
diff --git a/share/userfiles/templates/default.css 
b/share/userfiles/templates/default.css
index d1416c0..31637a6 100644
--- a/share/userfiles/templates/default.css
+++ b/share/userfiles/templates/default.css
@@ -650,6 +650,7 @@ td#popupWindowContent a:hover 
{color:#779D2A;text-decoration:underline}
 #sidebar li.open a.title {background: 
url('../images/templates/default.folder_open.gif') no-repeat left #eaf0f2;}
 #sidebar li.closed a.title {background: 
url('../images/templates/default.folder_closed.gif') no-repeat left #eaf0f2;}
 #sidebar li a:hover {background-color:#d9e1e4;color:#779D2A}
+#sidebar a.error, #sidebar a.error:active, #sidebar a.error:visited 
{color:#ff0000}
 
 /*
  * Frontend eventlog styling
diff --git a/share/userfiles/templates/default.header.html 
b/share/userfiles/templates/default.header.html
index 2038da3..efcac68 100644
--- a/share/userfiles/templates/default.header.html
+++ b/share/userfiles/templates/default.header.html
@@ -146,7 +146,7 @@
 
 {template sideMaps maps pathBase type indent=1}
 {foreach $maps map}
-    {if $map.configError == true}<li class="lvl{$indent}">{$map.mapAlias}</li>
+    {if $map.configError == true}<li class="lvl{$indent}"><a 
class="error">{$map.mapAlias}</a></li>
     {else}<li class="lvl{$indent}"><a class="left" 
href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&amp;act=view&amp;show={$map.mapName}{$map.urlParams}">{$map.mapAlias}</a></li>{/if}
     {if $map.childs}
         {sideMaps $map.childs $pathBase $type $indent+1}


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to