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

/templates/webapps/reports/workflows_per_month_all.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 38 lines | 36 code | 2 blank | 0 comment | 2 complexity | b13407bf4931fd7e5e0655591ee25e46 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">Workflows Per Month</h3>
11        <table align="center" width="60%" class="colored">
12            %if len( workflows ) == 0:
13                <tr><td colspan="4">There are no workflows</td></tr>
14            %else:
15                <tr class="header">
16                    <td>Month</td>
17                    <td>Total</td>
18                </tr>
19                <% ctr = 0 %>
20                %for workflow in workflows:
21                    <%
22                        month = workflow[0]
23                        total = workflow[1]
24                    %>
25                    %if ctr % 2 == 1:
26                        <tr class="odd_row">
27                    %else:
28                        <tr class="tr">
29                    %endif
30                        <td>${month}</td>
31                        <td>${total}</td>
32                    </tr>
33                    <% ctr += 1 %>
34                %endfor
35            %endif
36        </table>
37    </div>
38</div>