PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/webapps/reports/workflows_user_per_month.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 42 lines | 39 code | 3 blank | 0 comment | 2 complexity | e4b2e47e0ef246df5ab319e67991745a MD5 | raw file
 1<%inherit file="/base.mako"/>
 2<%namespace file="/message.mako" import="render_msg" />
 3
 4<%
 5    from galaxy import util
 6%>
 7
 8%if message:
 9    ${render_msg( message, 'done' )}
10%endif
11
12<div class="toolForm">
13    <div class="toolFormBody">
14        <h3 align="center">Workflows per month for user "${util.restore_text( email )}"</h3>
15        <table align="center" width="60%" class="colored">
16            %if len( workflows ) == 0:
17                <tr><td colspan="2">There are no workflows for user "${util.restore_text( email )}"</td></tr>
18            %else:
19                <tr class="header">
20                    <td>Month</td>
21                    <td>Total</td>
22                </tr>
23                <% ctr = 0 %>
24                %for workflow in workflows:
25                    <%
26                        month = workflow[0]
27                        total = workflow[1]
28                    %>
29                    %if ctr % 2 == 1:
30                        <tr class="odd_row">
31                    %else:
32                        <tr class="tr">
33                    %endif
34                        <td>${month}</td>
35                        <td>${total}</td>
36                    </tr>
37                    <% ctr += 1 %>
38                %endfor
39            %endif
40        </table>
41    </div>
42</div>