1 <#-- |
|
2 ============================================================================ |
|
3 Name : logger.ftl |
|
4 Part of : Helium |
|
5 |
|
6 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
7 All rights reserved. |
|
8 This component and the accompanying materials are made available |
|
9 under the terms of the License "Eclipse Public License v1.0" |
|
10 which accompanies this distribution, and is available |
|
11 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
12 |
|
13 Initial Contributors: |
|
14 Nokia Corporation - initial contribution. |
|
15 |
|
16 Contributors: |
|
17 |
|
18 Description: |
|
19 |
|
20 ============================================================================ |
|
21 --> |
|
22 |
|
23 <#macro helium_logger_html_head> |
|
24 <style type="text/css"> |
|
25 <#include "log3.css"/> |
|
26 </style> |
|
27 <script type="text/javascript"> |
|
28 <#include "expand3.js"/> |
|
29 </script> |
|
30 </#macro> |
|
31 |
|
32 |
|
33 <#global helium_node_id = 0> |
|
34 |
|
35 |
|
36 <#macro helium_logger_header title subtitle=""> |
|
37 <div id="h_wrapper"> |
|
38 <div class="h_elmt"> |
|
39 <div class="h_title">${title}</div> |
|
40 <div class="h_subtitle">${subtitle}</div> |
|
41 </div> |
|
42 </div> |
|
43 </#macro> |
|
44 |
|
45 |
|
46 <!-- Renders a main body of content --> |
|
47 <#macro helium_logger_content title> |
|
48 <#assign helium_node_id = helium_node_id + 1> |
|
49 <div id="mb"> |
|
50 <div class="mc"> |
|
51 <h1>${title}</h1> |
|
52 <div class="node_head"></div> |
|
53 <div id="Content${helium_node_id}"> |
|
54 <div class="node_content"> |
|
55 <#nested> |
|
56 </div> |
|
57 </div> |
|
58 </div> |
|
59 </div> |
|
60 </div> |
|
61 </#macro> |
|
62 |
|
63 |
|
64 <#macro helium_logger_print type> |
|
65 <#if type == ""> |
|
66 <code><#nested></code><br/> |
|
67 <#else> |
|
68 <code class="code_${type}"><#nested></code><br/> |
|
69 </#if> |
|
70 </#macro> |
|
71 |
|
72 <#macro helium_message_box nodeid type count> |
|
73 <#if (count > 0)> |
|
74 <a href="javascript:ToggleNode('Img${nodeid}')"> |
|
75 <span class="node_${type}"> |
|
76 <span class="count_${type}">${count} ${type}s</span> |
|
77 </span> |
|
78 </a> |
|
79 </#if> |
|
80 </#macro> |
|
81 |
|
82 <#macro helium_logger_node_head nodeid title> |
|
83 <div class="node_head"> |
|
84 <a href="javascript:ToggleNode('Img${nodeid}')"> |
|
85 <span id="Img${nodeid}"> |
|
86 <span class="node_action">[X]</span><span class="node_title">${title}</span> |
|
87 </span> |
|
88 </a> |
|
89 <a href="javascript:ShowChilds('Img${nodeid}')"> |
|
90 <span class="node_action">[Show All]</span> |
|
91 </a> |
|
92 <a href="javascript:HideChilds('Img${nodeid}')"> |
|
93 <span class="node_action">[Hide All]</span> |
|
94 </a> |
|
95 <!-- error reporting managenent --> |
|
96 <#nested> |
|
97 </div> |
|
98 </#macro> |
|
99 |
|
100 |
|
101 <#macro helium_logger_node_content nodeid> |
|
102 <div id="Content${nodeid}" style="display:none"> |
|
103 <div class="node_content"> |
|
104 <#nested> |
|
105 </div> |
|
106 </div> |
|
107 </#macro> |
|