Module: nagvis
Branch: master
Commit: 20df4bc7557bc934e255b1a983e8625c21c6aa51
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=20df4bc7557bc934e255b1a983e8625c21c6aa51

Author: Lars Michelsen <[email protected]>
Date:   Sat Nov  6 19:55:26 2010 +0100

Added automaps to sidebar menu

---

 share/userfiles/templates/default.header.html |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/share/userfiles/templates/default.header.html 
b/share/userfiles/templates/default.header.html
index 119d708..d5b4098 100644
--- a/share/userfiles/templates/default.header.html
+++ b/share/userfiles/templates/default.header.html
@@ -196,7 +196,22 @@
        <li class="closed"><a class="title" href="#" 
onclick="sidebarToggleSubtree(this)">Maps</a>
                <ul style="display:none;">
                        {foreach $maps map}
-                               <li><a class="left" 
href="{$pathBase}/frontend/nagvis-js/index.php?mod=Map&amp;act=view&amp;show={$map.mapName}{$map.urlParams}">{$map.mapAlias}</a></li>
+                               {if $map.configError == true}
+                                       <li>{$map.mapAlias}</li>
+                               {else}
+                                       <li><a class="left" 
href="{$pathBase}/frontend/nagvis-js/index.php?mod=Map&amp;act=view&amp;show={$map.mapName}{$map.urlParams}">{$map.mapAlias}</a></li>
+                               {/if}
+                       {/foreach}
+               </ul>
+       </li>
+       <li class="closed"><a class="title" href="#" 
onclick="sidebarToggleSubtree(this)">Automaps</a>
+               <ul style="display:none;">
+                       {foreach $automaps map}
+                               {if $map.configError == true}
+                                       <li>{$map.mapAlias}</li>
+                               {else}
+                                       <li><a class="left" 
href="{$pathBase}/frontend/nagvis-js/index.php?mod=AutoMap&amp;act=view&amp;show={$map.mapName}{$map.urlParams}">{$map.mapAlias}</a></li>
+                               {/if}
                        {/foreach}
                </ul>
        </li>


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to