| 1 | <!DOCTYPE html |
|---|
| 2 | PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|---|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 5 | xmlns:xi="http://www.w3.org/2001/XInclude" |
|---|
| 6 | xmlns:py="http://genshi.edgewall.org/"> |
|---|
| 7 | <xi:include href="admin.html" /> |
|---|
| 8 | <head> |
|---|
| 9 | <title>Pull Requests</title> |
|---|
| 10 | </head> |
|---|
| 11 | |
|---|
| 12 | <body> |
|---|
| 13 | <h2>Pull Requests <span py:if="view == 'list' and paginator.has_more_pages"> (${paginator.displayed_items()})</span></h2> |
|---|
| 14 | |
|---|
| 15 | <py:choose test="view"> |
|---|
| 16 | <form py:when="'detail'" class="mod" id="pullrequests_modify" method="post" action=""> |
|---|
| 17 | <fieldset> |
|---|
| 18 | <legend>Modify Pull Request:</legend> |
|---|
| 19 | <div class="field"> |
|---|
| 20 | <label>Status: |
|---|
| 21 | <select name="status"> |
|---|
| 22 | <option py:for="status in statuses" value="$status" selected="${'selected' if pr.status == status else None}">$status</option> |
|---|
| 23 | </select> |
|---|
| 24 | </label> |
|---|
| 25 | </div> |
|---|
| 26 | <div class="buttons"> |
|---|
| 27 | <input type="submit" name="save" class="trac-disable-on-submit" value="${_('Save')}"/> |
|---|
| 28 | <input type="submit" name="cancel" value="${_('Cancel')}" /> |
|---|
| 29 | </div> |
|---|
| 30 | </fieldset> |
|---|
| 31 | </form> |
|---|
| 32 | |
|---|
| 33 | <py:otherwise> |
|---|
| 34 | <form id="prefs" method="get" action=""> |
|---|
| 35 | <fieldset> |
|---|
| 36 | <div class="field"> |
|---|
| 37 | <label>Max items per page: |
|---|
| 38 | <input type="text" name="max" size="10" value="${max_per_page}" /> |
|---|
| 39 | </label> |
|---|
| 40 | </div> |
|---|
| 41 | <div class="buttons"> |
|---|
| 42 | <input type="submit" name="update" class="trac-disable-on-submit" value="${_('Update')}"/> |
|---|
| 43 | </div> |
|---|
| 44 | </fieldset> |
|---|
| 45 | </form> |
|---|
| 46 | |
|---|
| 47 | <xi:include py:if="paginator.show_index" href="page_index.html" /> |
|---|
| 48 | <table class="listing"> |
|---|
| 49 | <thead> |
|---|
| 50 | <tr> |
|---|
| 51 | <th>PR</th><th>Status</th><th>Ticket</th><th>Changes</th><th>Author</th><th>Reviewers</th><th>Opened</th><th>Modified</th> |
|---|
| 52 | </tr> |
|---|
| 53 | </thead> |
|---|
| 54 | <tbody> |
|---|
| 55 | <tr py:for="idx, pr in enumerate(prs)" class="${'odd' if idx % 2 else 'even'}"> |
|---|
| 56 | <td>$pr.id</td> |
|---|
| 57 | <td><a href="${panel_href(pr.id)}">$pr.status</a></td> |
|---|
| 58 | |
|---|
| 59 | <td><a href="${href('ticket', pr.ticket) + '#comment:%s' % pr.comment}">#$pr.ticket</a></td> |
|---|
| 60 | <td>${format_wikilink(pr)}</td> |
|---|
| 61 | <td>$pr.author</td> |
|---|
| 62 | <td>$pr.reviewers</td> |
|---|
| 63 | <td>${format_datetime_utc(pr.opened)}</td> |
|---|
| 64 | <td>${format_datetime_utc(pr.modified)}</td> |
|---|
| 65 | </tr> |
|---|
| 66 | </tbody> |
|---|
| 67 | </table> |
|---|
| 68 | <xi:include py:if="paginator.show_index" href="page_index.html" /> |
|---|
| 69 | |
|---|
| 70 | </py:otherwise> |
|---|
| 71 | </py:choose> |
|---|
| 72 | |
|---|
| 73 | </body> |
|---|
| 74 | </html> |
|---|