PageRenderTime 124ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/workflow/list_for_run.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 79 lines | 66 code | 11 blank | 2 comment | 2 complexity | f6c7b7742b31d5b30653679e48c39cce MD5 | raw file
  1. <%inherit file="/base.mako"/>
  2. <%def name="title()">Workflow home</%def>
  3. %if message:
  4. <%
  5. try:
  6. messagetype
  7. except:
  8. messagetype = "done"
  9. %>
  10. <p />
  11. <div class="${messagetype}message">
  12. ${message}
  13. </div>
  14. %endif
  15. <h2>Your workflows</h2>
  16. <ul class="manage-table-actions">
  17. <li>
  18. <a class="action-button" href="${h.url_for( controller="workflow", action='index' )}" target="_parent">
  19. <span>Switch to workflow management view</span>
  20. </a>
  21. </li>
  22. </ul>
  23. %if workflows:
  24. <table class="manage-table colored" border="0" cellspacing="0" cellpadding="0" width="100%">
  25. <tr class="header">
  26. <th>Name</th>
  27. <th># of Steps</th>
  28. ## <th>Last Updated</th>
  29. <th></th>
  30. </tr>
  31. %for i, workflow in enumerate( workflows ):
  32. <tr>
  33. <td>
  34. <a href="${h.url_for( action='run', id=trans.security.encode_id(workflow.id) )}">${h.to_unicode( workflow.name )}</a>
  35. <a id="wf-${i}-popup" class="popup-arrow" style="display: none;">&#9660;</a>
  36. </td>
  37. <td>${len(workflow.latest_workflow.steps)}</td>
  38. ## <td>${str(workflow.update_time)[:19]}</td>
  39. </tr>
  40. %endfor
  41. </table>
  42. %else:
  43. You have no workflows.
  44. %endif
  45. <h2>Workflows shared with you by others</h2>
  46. %if shared_by_others:
  47. <table class="colored" border="0" cellspacing="0" cellpadding="0" width="100%">
  48. <tr class="header">
  49. <th>Name</th>
  50. <th>Owner</th>
  51. <th># of Steps</th>
  52. <th></th>
  53. </tr>
  54. %for i, association in enumerate( shared_by_others ):
  55. <% workflow = association.stored_workflow %>
  56. <tr>
  57. <td>
  58. <a href="${h.url_for( action='run', id=trans.security.encode_id(workflow.id) )}">${workflow.name}</a>
  59. <a id="shared-${i}-popup" class="popup-arrow" style="display: none;">&#9660;</a>
  60. </td>
  61. <td>${workflow.user.email}</td>
  62. <td>${len(workflow.latest_workflow.steps)}</td>
  63. </tr>
  64. %endfor
  65. </table>
  66. %else:
  67. No workflows have been shared with you.
  68. %endif