PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/webapps/reports/jobs_per_month_in_error.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 39 lines | 37 code | 2 blank | 0 comment | 2 complexity | f4cb70426924599a9220c301f62923ec MD5 | raw file
 1<%inherit file="/base.mako"/>
 2<%namespace file="/message.mako" import="render_msg" />
 3
 4%if message:
 5    ${render_msg( message, 'done' )}
 6%endif
 7
 8<div class="toolForm">
 9    <div class="toolFormBody">
10        <h4 align="center">Jobs In Error Per Month</h4>
11        <h5 align="center">Click Month to view details.</h5>
12        <table align="center" width="60%" class="colored">
13            %if len( jobs ) == 0:
14                <tr><td colspan="2">There are no jobs in the error state.</td></tr>
15            %else:
16                <tr class="header">
17                    <td>Month</td>
18                    %if is_user_jobs_only:
19    					<td>User Jobs in Error</td>
20					%else:
21	                    <td>User + Monitor Jobs in Error</td>
22	                %endif
23                </tr>
24                <% ctr = 0 %>
25                %for job in jobs:
26                    %if ctr % 2 == 1:
27                        <tr class="odd_row">
28                    %else:
29                        <tr class="tr">
30                    %endif
31                        <td><a href="${h.url_for( controller='jobs', action='specified_month_in_error', specified_date=job[0]+'-01' )}">${job[2]}&nbsp;${job[3]}</a></td>
32                        <td>${job[1]}</td>
33                    </tr>
34                    <% ctr += 1 %>
35                %endfor
36            %endif
37        </table>
38    </div>
39</div>