| 1 | <?cs include "header.cs"?> |
|---|
| 2 | <?cs include "macros.cs"?> |
|---|
| 3 | |
|---|
| 4 | <div id="ctxtnav"></div> |
|---|
| 5 | |
|---|
| 6 | <div id="content" class="mergebot"> |
|---|
| 7 | |
|---|
| 8 | <h1>MergeBot</h1> |
|---|
| 9 | |
|---|
| 10 | <!-- DEBUG SECTION --> |
|---|
| 11 | <?cs if:mergebot.debug ?> |
|---|
| 12 | <h2>Debug info:</h2> |
|---|
| 13 | <?cs each:debug = mergebot.debug ?> |
|---|
| 14 | <li><?cs var:debug ?></li> |
|---|
| 15 | <?cs /each ?> |
|---|
| 16 | <hr> |
|---|
| 17 | <?cs /if ?> |
|---|
| 18 | <!-- END DEBUG SECTION --> |
|---|
| 19 | |
|---|
| 20 | <!-- Show all of our queues --> |
|---|
| 21 | <?cs each:queue = mergebot.queue ?> |
|---|
| 22 | <div id="content" class="query"> |
|---|
| 23 | <h1><?cs var:queue ?> Queue</h1> |
|---|
| 24 | |
|---|
| 25 | <table class="listing tickets"> |
|---|
| 26 | <!-- Hardcode the header for now: --> |
|---|
| 27 | <thead><tr> |
|---|
| 28 | <th>Ticket</th> |
|---|
| 29 | <th>Summary</th> |
|---|
| 30 | <th>Component</th> |
|---|
| 31 | <th>Version</th> |
|---|
| 32 | <th>Status</th> |
|---|
| 33 | <th>Requestor</th> |
|---|
| 34 | <th>Activity</th> <!-- for lack of a better name --> |
|---|
| 35 | </tr></thead> |
|---|
| 36 | |
|---|
| 37 | <?cs if:queue.current ?> |
|---|
| 38 | <tr> |
|---|
| 39 | <th><a href=<?cs var:queue.current.href ?>>#<?cs var:queue.current ?></a></th> <!-- #ticket --> |
|---|
| 40 | <th><a href=<?cs var:queue.current.href ?>><?cs var:queue.current.summary ?></a></th> |
|---|
| 41 | <th><?cs var:queue.current.component ?></th> |
|---|
| 42 | <th><?cs var:queue.current.version ?></th> |
|---|
| 43 | <th><?cs var:queue.current.status ?></th> |
|---|
| 44 | <th><?cs var:queue.current.requestor ?></th> |
|---|
| 45 | <th>Doing <?cs name:queue ?></th> <!-- activity --> |
|---|
| 46 | </tr> |
|---|
| 47 | <?cs /if ?> |
|---|
| 48 | <?cs each:task = queue.queue ?> <!-- was queue.queue --> |
|---|
| 49 | <tr> |
|---|
| 50 | <th><a href=<?cs var:task.href ?>>#<?cs var:task ?></a></th> <!-- #ticket --> |
|---|
| 51 | <th><a href=<?cs var:task.href ?>><?cs var:task.summary ?></a></th> |
|---|
| 52 | <th><?cs var:task.component ?></th> |
|---|
| 53 | <th><?cs var:task.version ?></th> |
|---|
| 54 | <th><?cs var:task.status ?></th> |
|---|
| 55 | <th><?cs var:task.requestor ?></th> |
|---|
| 56 | <th><?cs var:task.mergebotstate ?></th> <!-- activity --> |
|---|
| 57 | </tr> |
|---|
| 58 | <?cs /each ?> |
|---|
| 59 | |
|---|
| 60 | </table> |
|---|
| 61 | </div> |
|---|
| 62 | <?cs /each ?> |
|---|
| 63 | |
|---|
| 64 | <!-- Tickets that are not in an activity queue: --> |
|---|
| 65 | <div id="content" class="query"> |
|---|
| 66 | <h1>Unqueued</h1> |
|---|
| 67 | |
|---|
| 68 | <table class="listing tickets"> |
|---|
| 69 | <!-- Hardcode the header for now: --> |
|---|
| 70 | <thead><tr> |
|---|
| 71 | <th>Ticket</th> |
|---|
| 72 | <th>Summary</th> |
|---|
| 73 | <th>Component</th> |
|---|
| 74 | <th>Version</th> |
|---|
| 75 | <th>Status</th> |
|---|
| 76 | <th>MergeBotState</th> |
|---|
| 77 | <th>Actions</th> |
|---|
| 78 | </tr></thead> |
|---|
| 79 | |
|---|
| 80 | <?cs each:task = mergebot.notqueued ?> |
|---|
| 81 | <tr> |
|---|
| 82 | <th><a href=<?cs var:task.href ?>>#<?cs var:task ?></a></th> <!-- ticket --> |
|---|
| 83 | <th><a href=<?cs var:task.href ?>><?cs var:task.summary ?></a></th> <!-- summary --> |
|---|
| 84 | <th><?cs var:task.component ?></th> |
|---|
| 85 | <th><?cs var:task.version ?></th> |
|---|
| 86 | <th><?cs var:task.status ?></th> |
|---|
| 87 | <th><?cs var:task.mergebotstate ?></th> |
|---|
| 88 | |
|---|
| 89 | <td> |
|---|
| 90 | <!-- For each of the buttons, MergeBot's web_ui tells us if it's a |
|---|
| 91 | valid operation for the ticket. Use that to determine which buttons to |
|---|
| 92 | show. --> |
|---|
| 93 | <form id="ops" method="post" name="ops-<?cs var:task ?>" action=""> |
|---|
| 94 | <input type="hidden" name="ticket" value="<?cs var:task ?>" /> |
|---|
| 95 | <input type="hidden" name="component" value="<?cs var:task.component ?>" /> |
|---|
| 96 | <input type="hidden" name="version" value="<?cs var:task.version ?>" /> |
|---|
| 97 | <?cs if:task.actions.branch ?> |
|---|
| 98 | <input type="submit" name="action" value="Branch" /> |
|---|
| 99 | <?cs /if ?> |
|---|
| 100 | <?cs if:task.actions.rebranch ?> |
|---|
| 101 | <input type="submit" name="action" value="Rebranch" /> |
|---|
| 102 | <?cs /if ?> |
|---|
| 103 | <?cs if:task.actions.merge ?> |
|---|
| 104 | <input type="submit" name="action" value="Merge" /> |
|---|
| 105 | <?cs /if ?> |
|---|
| 106 | <?cs if:task.actions.checkmerge ?> |
|---|
| 107 | <input type="submit" name="action" value="CheckMerge" /> |
|---|
| 108 | <?cs /if ?> |
|---|
| 109 | </form> |
|---|
| 110 | </td> |
|---|
| 111 | |
|---|
| 112 | </tr> |
|---|
| 113 | <?cs /each ?> |
|---|
| 114 | |
|---|
| 115 | </table> |
|---|
| 116 | </div> |
|---|
| 117 | |
|---|
| 118 | |
|---|
| 119 | </div> |
|---|
| 120 | |
|---|
| 121 | <?cs include:"footer.cs"?> |
|---|