|
Last change
on this file was
15225,
checked in by Cinc-th, 8 years ago
|
|
Fix for header section of user list table broken by last commit.
|
|
File size:
2.2 KB
|
| Line | |
|---|
| 1 | <div xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 2 | xmlns:py="http://genshi.edgewall.org/"> |
|---|
| 3 | |
|---|
| 4 | <!-- Display a full reviewer drop-down list if it's a new CodeReview, display unassigned reviewers if resubmitted --> |
|---|
| 5 | <py:choose test="new"> |
|---|
| 6 | <span py:when="'yes'"> |
|---|
| 7 | <select id="Reviewers"> |
|---|
| 8 | <option py:for="item in users" value="${item}">${item}</option> |
|---|
| 9 | </select> |
|---|
| 10 | </span> |
|---|
| 11 | <span py:otherwise=""> |
|---|
| 12 | <span py:if="unassigned_users"> |
|---|
| 13 | <select id="Reviewers"> |
|---|
| 14 | <option py:for="item in unassigned_users" value="$item">$item</option> |
|---|
| 15 | </select> |
|---|
| 16 | </span> |
|---|
| 17 | <span py:if="not unassigned_users"> |
|---|
| 18 | <select id="Reviewers"> |
|---|
| 19 | <option value="-1">-- No more users --</option> |
|---|
| 20 | </select> |
|---|
| 21 | </span> |
|---|
| 22 | </span> |
|---|
| 23 | </py:choose> |
|---|
| 24 | |
|---|
| 25 | <input disabled="${unassigend_users or None}" id="adduserbutton" type="button" value="Add user"/> |
|---|
| 26 | |
|---|
| 27 | <!-- Display an empty user list if it's a new CodeReview, display previous list if resubmitted --> |
|---|
| 28 | <div py:choose="new"> |
|---|
| 29 | <table py:when="'yes'" class="listing" id="myuserlist"> |
|---|
| 30 | <thead> |
|---|
| 31 | <tr> |
|---|
| 32 | <th>Username (Click to remove)</th> |
|---|
| 33 | </tr> |
|---|
| 34 | </thead> |
|---|
| 35 | <tbody id="myuserbody"> |
|---|
| 36 | <tr id="no-users" class="even"> |
|---|
| 37 | <td>No users have been added to the code review.</td> |
|---|
| 38 | </tr> |
|---|
| 39 | </tbody> |
|---|
| 40 | </table> |
|---|
| 41 | |
|---|
| 42 | <table py:otherwise="" class="listing" id="myuserlist"> |
|---|
| 43 | <thead> |
|---|
| 44 | <tr> |
|---|
| 45 | <th>Username (Click to remove)</th> |
|---|
| 46 | </tr> |
|---|
| 47 | </thead> |
|---|
| 48 | <tbody py:with="cls=cycle(('odd', 'even'))" id="myuserbody"> |
|---|
| 49 | <tr py:for="item in assigned_users" id="${item}id" class="${cls.next()}"> |
|---|
| 50 | <td value="$item"> |
|---|
| 51 | <input type="hidden" name="user" value="$item"/> |
|---|
| 52 | <a href="" data-user="$item" class="remove-user">$item</a> |
|---|
| 53 | </td> |
|---|
| 54 | </tr> |
|---|
| 55 | </tbody> |
|---|
| 56 | </table> |
|---|
| 57 | </div> |
|---|
| 58 | </div> |
|---|
Note: See
TracBrowser
for help on using the repository browser.