Author: Lars Michelsen <[email protected]>
Date: Sat Jul 13 20:13:58 2013 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sat Jul 13 20:13:58 2013 +0200
Slightly more compact html code in header template
---
share/userfiles/templates/default.header.html | 35 +++++-------------------
1 files changed, 8 insertions(+), 27 deletions(-)
diff --git a/share/userfiles/templates/default.header.html
b/share/userfiles/templates/default.header.html
index 21c38ae..5783f65 100644
--- a/share/userfiles/templates/default.header.html
+++ b/share/userfiles/templates/default.header.html
@@ -7,15 +7,9 @@
<li onmouseover="!sidebarOpen() ? ddMenu('views',1) : void(0)"
onmouseout="ddMenuHide(['views'])" class="dropdown">
<span id="views-ddheader"
onclick="toggleSidebar(true);ddMenuHide(['views'])">{$langOpen} <img
src="{$pathTemplateImages}default.header_down.png" alt="∇" /></span>
{template headMaps maps pathBase type indent=1}
- {foreach $maps map}
- <li class="lvl{$indent}">
- {if $map.configError == true}<a class="error"
href="#">{$map.mapAlias}</a>
- {else}<a
href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&act=view&show={$map.mapName}">{$map.mapAlias}</a>
{/if}
- </li>
- {if $map.childs}
- {headMaps $map.childs $pathBase $type $indent+1}
- {/if}
- {/foreach}
+ {foreach $maps map}<li class="lvl{$indent}">{if $map.configError ==
true}<a class="error" href="#">{$map.mapAlias}</a>
+ {else}<a
href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&act=view&show={$map.mapName}">{$map.mapAlias}</a>
{/if}</li>
+ {if $map.childs}{headMaps $map.childs $pathBase $type
$indent+1}{/if}{/foreach}
{/template}
<ul id="views-ddcontent">
{if $permittedOverview}
@@ -144,24 +138,11 @@
</div>
{template sideMaps maps pathBase type indent=1}
-{foreach $maps map}
- <li class="lvl{$indent} {if $map.childs}closed parent{/if}">
- <div>
- {if $map.childs}<a class=open
href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&act=view&show={$map.mapName}">></a>{/if}
- <a class="{if $map.childs}title{/if} {$map.class} {if
$map.configError}error{/if}"
- {if $map.childs}onclick="sidebarToggleSubtree(this);return false"
id="sb-{$map.mapName}"{/if}
- {if
$map.childs}href="#"{else}href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&act=view&show={$map.mapName}"{/if}>{$map.mapAlias}</a>
- </div>
-
-<!---href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&act=view&show={$map.mapName}">{$map.mapAlias}</a></li>--->
-
- {if $map.childs}
- <ul id="sb-{$map.mapName}-childs" style="display:none;">
- {sideMaps $map.childs $pathBase $type $indent+1}
- </ul>
- {/if}
- </li>
-{/foreach}
+{foreach $maps map}<li class="lvl{$indent} {if $map.childs}closed
parent{/if}"><div>
+{if $map.childs}<a class=open
href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&act=view&show={$map.mapName}">></a>{/if}
+<a class="{if $map.childs}title{/if} {$map.class} {if
$map.configError}error{/if}" {if
$map.childs}onclick="sidebarToggleSubtree(this);return false"
id="sb-{$map.mapName}"{/if}
+{if
$map.childs}href="#"{else}href="{$pathBase}/frontend/nagvis-js/index.php?mod={$type}&act=view&show={$map.mapName}"{/if}>{$map.mapAlias}</a>
+</div>{if $map.childs}<ul id="sb-{$map.mapName}-childs"
style="display:none;">{sideMaps $map.childs $pathBase $type
$indent+1}</ul>{/if}</li>{/foreach}
{/template}
<div id="sidebar">
<ul>
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins