PageRenderTime 40ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/galaxy/webapps/reports/templates/registered_users_per_month.mako

https://bitbucket.org/ialbert/galaxy-genetrack
Mako | 35 lines | 34 code | 1 blank | 0 comment | 2 complexity | 452f46b827f948758c86f9c9e5c01437 MD5 | raw file
  1. <%inherit file="/base_panels.mako"/>
  2. <%def name="main_body()">
  3. <div class="reportBody">
  4. <h3 align="center">User Registrations Per Month</h3>
  5. <h4 align="center">Click Month to view the number of user registrations for each day of that month</h4>
  6. %if msg:
  7. <table align="center" width="70%" class="border" cellpadding="5" cellspacing="5">
  8. <tr><td class="ok_bgr">${msg}</td></tr>
  9. </table>
  10. %endif
  11. <table align="center" width="30%" class="colored">
  12. %if len( users ) == 0:
  13. <tr><td colspan="2">There are no registered users</td></tr>
  14. %else:
  15. <tr class="header">
  16. <td>Month</td>
  17. <td>Number of Registrations</td>
  18. </tr>
  19. <% ctr = 0 %>
  20. %for user in users:
  21. %if ctr % 2 == 1:
  22. <tr class="odd_row">
  23. %else:
  24. <tr class="tr">
  25. %endif
  26. <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]}&nbsp;${user[3]}</a></td>
  27. <td>${user[1]}</td>
  28. </tr>
  29. <% ctr += 1 %>
  30. %endfor
  31. %endif
  32. </table>
  33. </div>
  34. </%def>