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

https://bitbucket.org/ialbert/galaxy-genetrack · Mako · 41 lines · 40 code · 1 blank · 0 comment · 2 complexity · 1380e6480613c9b04915cebbaf10f5ec MD5 · raw file

  1. <%inherit file="/base_panels.mako"/>
  2. <%def name="main_body()">
  3. <div class="reportBody">
  4. <h3 align="center">All Jobs for ${month_label}&nbsp;${year_label}</h3>
  5. <h4 align="center">Click Total Jobs to see jobs for that day</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="60%" class="colored">
  12. %if len( jobs ) == 0:
  13. <tr><td colspan="5">There are no jobs for ${month_label}&nbsp;${year_label}</td></tr>
  14. %else:
  15. <tr class="header">
  16. <td>Day</td>
  17. <td>Date</td>
  18. <td>User Jobs</td>
  19. <td>Monitor Jobs</td>
  20. <td>Total Jobs</td>
  21. </tr>
  22. <% ctr = 0 %>
  23. %for job in jobs:
  24. %if ctr % 2 == 1:
  25. <tr class="odd_row">
  26. %else:
  27. <tr class="tr">
  28. %endif
  29. <td>${job[0]}</td>
  30. <td>${month_label}&nbsp;${job[5]},&nbsp;${year_label}</td>
  31. <td>${job[2]}</td>
  32. <td>${job[3]}</td>
  33. <td><a href="${h.url_for( controller='jobs', action='specified_date_all', specified_date=job[1], day_label=job[0], month_label=month_label, year_label=year_label, day_of_month=job[5] )}">${job[4]}</a></td>
  34. </tr>
  35. <% ctr += 1 %>
  36. %endfor
  37. %endif
  38. </table>
  39. </div>
  40. </%def>