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