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

/templates/webapps/reports/jobs_specified_month_all.mako

https://bitbucket.org/h_morita_dbcls/galaxy-central
Mako | 41 lines | 39 code | 2 blank | 0 comment | 2 complexity | dc9e2f3727d35020ed196cf86f1f1613 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        <h3 align="center">All Jobs for ${month_label}&nbsp;${year_label}</h3>
11        <h4 align="center">Click Total Jobs to see jobs for that day</h4>
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                    <td>User Jobs</td>
20                    <td>Monitor Jobs</td>
21                    <td>Total Jobs</td>
22                </tr>
23                <% ctr = 0 %>
24                %for job in jobs:
25                    %if ctr % 2 == 1:
26                        <tr class="odd_row">
27                    %else:
28                        <tr class="tr">
29                    %endif
30                        <td>${job[0]}</td>
31                        <td>${month_label}&nbsp;${job[5]},&nbsp;${year_label}</td>
32                        <td>${job[2]}</td>
33                        <td>${job[3]}</td>
34                        <td><a href="${h.url_for( controller='jobs', action='specified_date_handler', specified_date=job[1], webapp='reports' )}">${job[4]}</a></td>
35                    </tr>
36                    <% ctr += 1 %>
37                %endfor
38            %endif
39        </table>
40    </div>
41</div>