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

/templates/webapps/reports/registered_users_specified_date.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 32 lines | 30 code | 2 blank | 0 comment | 2 complexity | 108bf90a6b292253fe1fc28c0b0092aa 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">User Registrations for ${day_label},&nbsp;${month_label}&nbsp;${day_of_month},&nbsp;${year_label}</h3>
11        <table align="center" width="30%" class="colored">
12            %if len( users ) == 0:
13                <tr><td colspan="2">There are no user registrations for ${day_label},&nbsp;${month_label}&nbsp;${day_of_month},&nbsp;${year_label}</td></tr>
14            %else:
15                <tr class="header">
16                    <td>Email</td>
17                </tr>
18                <% ctr = 0 %>
19                %for user in users:
20                    %if ctr % 2 == 1:
21                        <tr class="odd_row">
22                    %else:
23                        <tr class="tr">
24                    %endif
25                        <td>${user}</td>
26                    </tr>
27                    <% ctr += 1 %>
28                %endfor
29            %endif
30        </table>
31    </div>
32</div>