source: trunk/web/addons/job_monarch/templates/overview.tpl @ 299

Last change on this file since 299 was 299, checked in by bastiaans, 15 years ago

web/addons/job_monarch/conf.php:

  • added COLUMN_NODES option to display job node hostnames column

web/addons/job_monarch/search.php,
web/addons/job_monarch/overview.php:

  • added handling of COLUMN_NODES

web/addons/job_monarch/templates/search.tpl,
web/addons/job_monarch/templates/overview.tpl:

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