/templates/webapps/reports/jobs_per_month_all.mako

https://bitbucket.org/h_morita_dbcls/galaxy-central · Mako · 39 lines · 37 code · 2 blank · 0 comment · 2 complexity · f5ef6fc54f60a16e394d9b94a1509e14 MD5 · raw file

  1. <%inherit file="/base.mako"/>
  2. <%namespace file="/message.mako" import="render_msg" />
  3. %if message:
  4. ${render_msg( message, 'done' )}
  5. %endif
  6. <div class="toolForm">
  7. <div class="toolFormBody">
  8. <h3 align="center">Jobs Per Month</h3>
  9. <h4 align="center">Click Month to view the number of jobs for each day of that month</h4>
  10. <table align="center" width="60%" class="colored">
  11. %if len( jobs ) == 0:
  12. <tr><td colspan="4">There are no jobs</td></tr>
  13. %else:
  14. <tr class="header">
  15. <td>Month</td>
  16. <td>User Jobs</td>
  17. <td>Monitor Jobs</td>
  18. <td>Total</td>
  19. </tr>
  20. <% ctr = 0 %>
  21. %for job in jobs:
  22. %if ctr % 2 == 1:
  23. <tr class="odd_row">
  24. %else:
  25. <tr class="tr">
  26. %endif
  27. <td><a href="${h.url_for( controller='jobs', action='specified_month_all', specified_date=job[0]+'-01' )}">${job[4]}&nbsp;${job[5]}</a></td>
  28. <td>${job[1]}</td>
  29. <td>${job[2]}</td>
  30. <td>${job[3]}</td>
  31. </tr>
  32. <% ctr += 1 %>
  33. %endfor
  34. %endif
  35. </table>
  36. </div>
  37. </div>