PageRenderTime 16ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/templates/webapps/reports/jobs_tool_per_month.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 39 lines | 37 code | 2 blank | 0 comment | 2 complexity | 93d875eb44473f405b651c3d96596ed9 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 per month for tool "${tool_id}"</h4>
11        <h5 align="center">Click Jobs 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 for tool "${tool_id}"</td></tr>
15            %else:
16                <tr class="header">
17                    <td>Month</td>
18                    %if is_user_jobs_only:
19    					<td>User Jobs</td>
20					%else:
21	                    <td>User + Monitor Jobs</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>${job[2]}&nbsp;${job[3]}</td>
32                        <td><a href="${h.url_for( controller='jobs', action='specified_date_handler', operation='tool_for_month', tool_id=tool_id, specified_date=job[0] )}">${job[1]}</a></td>
33                    </tr>
34                    <% ctr += 1 %>
35                %endfor
36            %endif
37        </table>
38    </div>
39</div>