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

/templates/webapps/reports/jobs_per_user.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 35 lines | 33 code | 2 blank | 0 comment | 2 complexity | 850fcd8e36be5e8f25f39673663ce6eb 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 User</h4>
11        <h5 align="center">Click User 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.</td></tr>
15            %else:
16                <tr class="header">
17                    <td>User</td>
18                    <td>Total Jobs</td>
19                </tr>
20                <% ctr = 0 %>
21                %for job in jobs:
22                    %if ctr % 2 == 1:
23                        <tr class="odd_row">
24                    %else:
25                        <tr class="tr">
26                    %endif
27                        <td><a href="${h.url_for( controller='jobs', action='user_per_month', email=job[0] )}">${job[0]}</a></td>
28                        <td>${job[1]}</td>
29                    </tr>
30                    <% ctr += 1 %>
31                %endfor
32            %endif
33        </table>
34    </div>
35</div>