/lib/galaxy/webapps/reports/templates/registered_users_per_month.mako
Mako | 35 lines | 34 code | 1 blank | 0 comment | 2 complexity | 452f46b827f948758c86f9c9e5c01437 MD5 | raw file
- <%inherit file="/base_panels.mako"/>
- <%def name="main_body()">
- <div class="reportBody">
- <h3 align="center">User Registrations Per Month</h3>
- <h4 align="center">Click Month to view the number of user registrations for each day of that month</h4>
- %if msg:
- <table align="center" width="70%" class="border" cellpadding="5" cellspacing="5">
- <tr><td class="ok_bgr">${msg}</td></tr>
- </table>
- %endif
- <table align="center" width="30%" class="colored">
- %if len( users ) == 0:
- <tr><td colspan="2">There are no registered users</td></tr>
- %else:
- <tr class="header">
- <td>Month</td>
- <td>Number of Registrations</td>
- </tr>
- <% ctr = 0 %>
- %for user in users:
- %if ctr % 2 == 1:
- <tr class="odd_row">
- %else:
- <tr class="tr">
- %endif
- <td><a href="${h.url_for( controller='users', action='specified_month', month=user[0], month_label=user[2].strip(), year_label=user[3] )}">${user[2]} ${user[3]}</a></td>
- <td>${user[1]}</td>
- </tr>
- <% ctr += 1 %>
- %endfor
- %endif
- </table>
- </div>
- </%def>