source: branches/0.4/web/addons/job_monarch/templates/overview.tpl @ 758

Last change on this file since 758 was 758, checked in by ramonb, 9 years ago

graph.php,
overview.php:

  • display range in title
  • removed RRDs column count: now done via css

templates/overview.tpl:

  • removed RRDs column count: now done via css

index.php:

  • dont show range selector if no show hosts
File size: 5.3 KB
Line 
1<CENTER>
2<TABLE cellpadding="15">
3<TR>
4
5  <TD>
6
7
8<TABLE ALIGN=CENTER class="overview" cellpadding="5">
9
10<COL id="kol1">
11<COL id="kol2">
12<COL id="kol3">
13<COL id="kol4">
14
15<TR class="overview_header">
16<TD>Batch</TD>
17<TD>Jobs</TD>
18<TD>Nodes</TD>
19<TD>Cpus</TD>
20</TR>
21
22{if "$na_nodes" == "yes"}
23<TR class="overview">
24<TD class="gray">
25Unavailable
26</TD>
27<TD class="gray">
28{$na_jobs}
29</TD>
30<TD class="gray">
31{$na_nodes}
32</TD>
33<TD class="gray">
34{$na_cpus}
35</TD>
36</TR>
37{/if}
38
39<TR class="overview_line">
40<TD class="blue">
41Capacity
42</TD>
43<TD class="blue">
44</TD>
45<TD class="blue">
46{$avail_nodes}
47</TD>
48<TD class="blue">
49{$avail_cpus}
50</TD>
51</TR>
52
53
54
55<TR class="overview">
56<TD class="red">
57Allocated
58</TD>
59<TD class="red">
60{$running_jobs}
61</TD>
62<TD class="red">
63{$running_nodes}
64</TD>
65<TD class="red">
66{$running_cpus}
67</TD>
68</TR>
69
70<TR class="overview_line">
71<TD class="gray">
72Queued
73</TD>
74<TD class="gray">
75{$queued_jobs}
76</TD>
77<TD class="gray">
78{$queued_nodes}
79</TD>
80<TD class="gray">
81{$queued_cpus}
82</TD>
83</TR>
84
85<TR class="overview">
86<TD class="brown">
87Total
88</TD>
89<TD class="brown">
90{$total_jobs}
91</TD>
92<TD class="brown">
93{$total_nodes}
94</TD>
95<TD class="brown">
96{$total_cpus}
97</TD>
98</TR>
99
100
101<TR class="overview">
102<TD class="green">
103Unallocated
104</TD>
105<TD class="green">
106</TD>
107<TD class="green">
108{$free_nodes}
109</TD>
110<TD class="green">
111{$free_cpus}
112</TD>
113</TR>
114
115<TR class="overview" id="selected">
116<TD>
117View
118</TD>
119<TD>
120{$view_jobs}
121</TD>
122<TD>
123{$view_nodes}
124</TD>
125<TD>
126{$view_cpus}
127</TD>
128</TR>
129
130</TABLE>
131
132<BR>
133<div id="monarchimage">
134{$rjqj_graph}
135</div>
136
137  <TD ALIGN="CENTER"><CENTER>
138<!-- INCLUDESCRIPT BLOCK : ci_script -->
139    <div id="monarchimage">
140    <IMG SRC="{$clusterimage}" USEMAP="#MONARCH_CLUSTER_BIG" BORDER="0">
141    </div>
142    <MAP NAME="MONARCH_CLUSTER_BIG">
143{if "$nodes_clustermap" == "yes"}
144{$node_area_map}
145{/if}
146    </MAP>
147    <BR>
148<FONT class="footer">Last updated: {$report_time}</FONT></CENTER>
149  </TD>
150
151  </TD>
152  <TD ALIGN="CENTER">
153    <IMG SRC="{$pie}">
154  </TD>
155</TR>
156</TABLE>
157
158<BR>
159
160<SCRIPT TYPE="text/javascript" SRC="libtoga.js"></SCRIPT>
161<NOSCRIPT><P>[Sorting by column header requires JavaScript]<BR><BR></P></NOSCRIPT>
162
163<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{$sortby}">
164<INPUT TYPE="HIDDEN" NAME="sortorder" VALUE="{$sortorder}">
165<INPUT TYPE="HIDDEN" NAME="c" VALUE="{$clustername}">
166<INPUT TYPE="HIDDEN" NAME="queue" VALUE="{$queue}">
167<INPUT TYPE="HIDDEN" NAME="state" VALUE="{$state}">
168<INPUT TYPE="HIDDEN" NAME="owner" VALUE="{$owner}">
169<INPUT TYPE="HIDDEN" NAME="id" VALUE="{$id}">
170<INPUT TYPE="HIDDEN" NAME="filterorder" VALUE="{$order}">
171
172<TABLE WIDTH="100%" CELLPADDING="2" CELLSPACING="2" BORDER=0>
173<TR CLASS="monarch">
174<TH><B><A HREF="#" onClick="setSort( 'id' )" ALT="Jobid" TITLE="Jobid">Id</A></B></TH>
175<TH><B><A HREF="#" onClick="setSort( 'state' )" ALT="State" TITLE="State">S</A></B></TH>
176<TH><B><A HREF="#" onClick="setSort( 'owner' )">Owner</A></B></TH>
177<TH><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TH>
178<TH><B><A HREF="#" onClick="setSort( 'name' )" ALT="Jobname" TITLE="Jobname">Name</A></B></TH>
179<TH><B><A HREF="#" onClick="setSort( 'req_cpu' )" ALT="Requested CPU Time (walltime)" TITLE="Requested CPU Time (walltime)">Req. CPU time</A></B></TH>
180{if "$column_header_req_mem" == "yes"}
181<TH><B><A HREF="#" onClick="setSort( 'req_mem' )" ALT="Requested Memory" TITLE="Requested Memory">Req. Memory</A></B></TH>
182{/if}
183<TH><B><A HREF="#" onClick="setSort( 'nodes' )" ALT="Nodes" TITLE="Nodes">N</A>/<A HREF="#" onClick="setSort( 'cpus' )" ALT="Processors" TITLE="Processors">P</A></B></TH>
184{if "$column_header_queued" == "yes"}
185<TH><B><A HREF="#" onClick="setSort( 'queued' )">Queued</A></B></TH>
186{/if}
187{if "$column_header_nodes" == "yes"}
188<TH WIDTH="11%"><B><A HREF="#" onClick="setSort( 'nodes' )" ALT="Nodes" TITLE="Nodes">Nodes</A></B></TH>
189{/if}
190<TH><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TH>
191<TH><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TH>
192</TR>
193
194{loop $node_list}
195  <TR CLASS="{$nodeclass}">
196    <TD><A HREF="#" onClick="setFilter( 'id', '{$id}' )">{$id}</A></TD>
197    <TD><A HREF="#" onClick="setFilter( 'state', '{$state}' )" ALT="{$fullstate}" TITLE="{$fullstate}">{$state}</A></TD>
198    <TD><A HREF="#" onClick="setFilter( 'owner', '{$owner}' )">{$owner}</A></TD>
199    <TD><A HREF="#" onClick="setFilter( 'queue', '{$queue}' )">{$queue}</A></TD>
200    <TD ALT="{$fulljobname}" TITLE="{$fulljobname}">
201{if "$jobname_hint_start" == "yes"}
202    <FONT CLASS="jobname_hint">
203{/if}
204    {$name}
205{if "$jobname_hint_end" == "yes"}
206    </FONT>
207{/if}
208    </TD>
209    <TD>{$req_cpu}</TD>
210{if "$column_req_mem" == "yes"}
211    <TD>{$req_memory}</TD>
212{/if}
213    <TD>{$nodes}/{$cpus}</TD>
214{if "$column_queued" == "yes"}
215    <TD>{$queued}</TD>
216{/if}
217{if "$column_nodes" == "yes"}
218    <TD>{$nodes_hostnames}</TD>
219{/if}
220    <TD>{$started}</TD>
221    <TD>{$runningtime}</TD>
222  </TR>
223{/loop}
224</TABLE>
225</CENTER>
226
227{if "$showhosts" == "yes"}
228<TABLE BORDER="0" WIDTH="100%">
229<TR>
230  <TD CLASS=title COLSPAN="2">
231  <FONT SIZE="-1">
232  Show Hosts:
233  yes<INPUT type=radio name="sh" value="1" OnClick="toga_form.submit();" {$checked1}>
234  no<INPUT type=radio name="sh" value="0" OnClick="toga_form.submit();" {$checked0}>
235  </FONT>
236  </TD>
237</TR>
238   
239</TABLE>
240
241<CENTER>
242<TABLE>
243<TR>
244<div id="monarchimage">
245{loop $sorted_list}
246{$metric_image}{$br}
247{/loop}
248</div>
249</TR>
250</TABLE>
251
252<p>
253(Nodes colored by 1-minute load) | <A HREF="../../node_legend.html" ALT="Node Image egend">Legend</A>
254
255</CENTER>
256
257{/if}
Note: See TracBrowser for help on using the repository browser.