PageRenderTime 24ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/webapps/reports/workflows_user_per_month.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 42 lines | 39 code | 3 blank | 0 comment | 2 complexity | e4b2e47e0ef246df5ab319e67991745a MD5 | raw file
  1. <%inherit file="/base.mako"/>
  2. <%namespace file="/message.mako" import="render_msg" />
  3. <%
  4. from galaxy import util
  5. %>
  6. %if message:
  7. ${render_msg( message, 'done' )}
  8. %endif
  9. <div class="toolForm">
  10. <div class="toolFormBody">
  11. <h3 align="center">Workflows per month for user "${util.restore_text( email )}"</h3>
  12. <table align="center" width="60%" class="colored">
  13. %if len( workflows ) == 0:
  14. <tr><td colspan="2">There are no workflows for user "${util.restore_text( email )}"</td></tr>
  15. %else:
  16. <tr class="header">
  17. <td>Month</td>
  18. <td>Total</td>
  19. </tr>
  20. <% ctr = 0 %>
  21. %for workflow in workflows:
  22. <%
  23. month = workflow[0]
  24. total = workflow[1]
  25. %>
  26. %if ctr % 2 == 1:
  27. <tr class="odd_row">
  28. %else:
  29. <tr class="tr">
  30. %endif
  31. <td>${month}</td>
  32. <td>${total}</td>
  33. </tr>
  34. <% ctr += 1 %>
  35. %endfor
  36. %endif
  37. </table>
  38. </div>
  39. </div>