PageRenderTime 142ms CodeModel.GetById 138ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/webapps/reports/jobs_specified_month_all.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 41 lines | 39 code | 2 blank | 0 comment | 2 complexity | 3cdbc446821e13881870cf76563783ae 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 for ${month_label}&nbsp;${year_label}</h4>
11        <h5 align="center">Click Jobs to see their details</h5>
12        <table align="center" width="60%" class="colored">
13            %if len( jobs ) == 0:
14                <tr><td colspan="5">There are no jobs for ${month_label}&nbsp;${year_label}</td></tr>
15            %else:
16                <tr class="header">
17                    <td>Day</td>
18                    <td>Date</td>
19                    %if is_user_jobs_only:
20    					<td>User Jobs</td>
21					%else:
22	                    <td>User + Monitor Jobs</td>
23	                %endif
24                </tr>
25                <% ctr = 0 %>
26                %for job in jobs:
27                    %if ctr % 2 == 1:
28                        <tr class="odd_row">
29                    %else:
30                        <tr class="tr">
31                    %endif
32                        <td>${job[0]}</td>
33                        <td>${month_label}&nbsp;${job[1]},&nbsp;${year_label}</td>
34                        <td><a href="${h.url_for( controller='jobs', action='specified_date_handler', specified_date=job[3], webapp='reports' )}">${job[2]}</a></td>
35                    </tr>
36                    <% ctr += 1 %>
37                %endfor
38            %endif
39        </table>
40    </div>
41</div>