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

Last change on this file since 764 was 764, checked in by ramonb, 9 years ago
  • fixed image map
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    {$node_area_map}
144    </MAP>
145    <BR>
146<FONT class="footer">Last updated: {$report_time}</FONT></CENTER>
147  </TD>
148
149  </TD>
150  <TD ALIGN="CENTER">
151    <IMG SRC="{$pie}">
152  </TD>
153</TR>
154</TABLE>
155
156<BR>
157
158<SCRIPT TYPE="text/javascript" SRC="libtoga.js"></SCRIPT>
159<NOSCRIPT><P>[Sorting by column header requires JavaScript]<BR><BR></P></NOSCRIPT>
160
161<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{$sortby}">
162<INPUT TYPE="HIDDEN" NAME="sortorder" VALUE="{$sortorder}">
163<INPUT TYPE="HIDDEN" NAME="c" VALUE="{$clustername}">
164<INPUT TYPE="HIDDEN" NAME="queue" VALUE="{$queue}">
165<INPUT TYPE="HIDDEN" NAME="state" VALUE="{$state}">
166<INPUT TYPE="HIDDEN" NAME="owner" VALUE="{$owner}">
167<INPUT TYPE="HIDDEN" NAME="id" VALUE="{$id}">
168<INPUT TYPE="HIDDEN" NAME="filterorder" VALUE="{$order}">
169
170<TABLE WIDTH="100%" CELLPADDING="2" CELLSPACING="2" BORDER=0>
171<TR CLASS="monarch">
172<TH><B><A HREF="#" onClick="setSort( 'id' )" ALT="Jobid" TITLE="Jobid">Id</A></B></TH>
173<TH><B><A HREF="#" onClick="setSort( 'state' )" ALT="State" TITLE="State">S</A></B></TH>
174<TH><B><A HREF="#" onClick="setSort( 'owner' )">Owner</A></B></TH>
175<TH><B><A HREF="#" onClick="setSort( 'queue' )">Queue</A></B></TH>
176<TH><B><A HREF="#" onClick="setSort( 'name' )" ALT="Jobname" TITLE="Jobname">Name</A></B></TH>
177<TH><B><A HREF="#" onClick="setSort( 'req_cpu' )" ALT="Requested CPU Time (walltime)" TITLE="Requested CPU Time (walltime)">Req. CPU time</A></B></TH>
178{if "$column_header_req_mem" == "yes"}
179<TH><B><A HREF="#" onClick="setSort( 'req_mem' )" ALT="Requested Memory" TITLE="Requested Memory">Req. Memory</A></B></TH>
180{/if}
181<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>
182{if "$column_header_queued" == "yes"}
183<TH><B><A HREF="#" onClick="setSort( 'queued' )">Queued</A></B></TH>
184{/if}
185{if "$column_header_nodes" == "yes"}
186<TH WIDTH="11%"><B><A HREF="#" onClick="setSort( 'nodes' )" ALT="Nodes" TITLE="Nodes">Nodes</A></B></TH>
187{/if}
188<TH><B><A HREF="#" onClick="setSort( 'start' )">Started</A></B></TH>
189<TH><B><A HREF="#" onClick="setSort( 'runningtime' )">Runningtime</A></B></TH>
190</TR>
191
192{loop $node_list}
193  <TR CLASS="{$nodeclass}">
194    <TD><A HREF="#" onClick="setFilter( 'id', '{$id}' )">{$id}</A></TD>
195    <TD><A HREF="#" onClick="setFilter( 'state', '{$state}' )" ALT="{$fullstate}" TITLE="{$fullstate}">{$state}</A></TD>
196    <TD><A HREF="#" onClick="setFilter( 'owner', '{$owner}' )">{$owner}</A></TD>
197    <TD><A HREF="#" onClick="setFilter( 'queue', '{$queue}' )">{$queue}</A></TD>
198    <TD ALT="{$fulljobname}" TITLE="{$fulljobname}">
199{if "$jobname_hint_start" == "yes"}
200    <FONT CLASS="jobname_hint">
201{/if}
202    {$name}
203{if "$jobname_hint_end" == "yes"}
204    </FONT>
205{/if}
206    </TD>
207    <TD>{$req_cpu}</TD>
208{if "$column_req_mem" == "yes"}
209    <TD>{$req_memory}</TD>
210{/if}
211    <TD>{$nodes}/{$cpus}</TD>
212{if "$column_queued" == "yes"}
213    <TD>{$queued}</TD>
214{/if}
215{if "$column_nodes" == "yes"}
216    <TD>{$nodes_hostnames}</TD>
217{/if}
218    <TD>{$started}</TD>
219    <TD>{$runningtime}</TD>
220  </TR>
221{/loop}
222</TABLE>
223</CENTER>
224
225{if "$showhosts" == "yes"}
226<TABLE BORDER="0" WIDTH="100%">
227<TR>
228  <TD CLASS=title COLSPAN="2">
229  <FONT SIZE="-1">
230  Show Hosts:
231  yes<INPUT type=radio name="sh" value="1" OnClick="toga_form.submit();" {$checked1}>
232  no<INPUT type=radio name="sh" value="0" OnClick="toga_form.submit();" {$checked0}>
233  </FONT>
234  </TD>
235</TR>
236   
237</TABLE>
238
239<CENTER>
240<TABLE>
241<TR>
242<div id="monarchimage">
243{loop $sorted_list}
244{$metric_image}{$br}
245{/loop}
246</div>
247</TR>
248</TABLE>
249
250<p>
251(Nodes colored by 1-minute load) | <A HREF="../../node_legend.html" ALT="Node Image egend">Legend</A>
252
253</CENTER>
254
255{/if}
Note: See TracBrowser for help on using the repository browser.