| 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:py="http://genshi.edgewall.org/" |
|---|
| 6 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
|---|
| 7 | <xi:include href="layout.html"/> |
|---|
| 8 | |
|---|
| 9 | <head> |
|---|
| 10 | <title>My Code Review</title> |
|---|
| 11 | </head> |
|---|
| 12 | |
|---|
| 13 | <body> |
|---|
| 14 | <div id="content"> |
|---|
| 15 | <h1>My Code Reviews</h1> |
|---|
| 16 | |
|---|
| 17 | <h2>This is a list of open code reviews currently assigned to you.</h2> |
|---|
| 18 | <form action="" method="get"> |
|---|
| 19 | <fieldset> |
|---|
| 20 | <label><input type="checkbox" value="1" name="allassigned" checked="${allassigned or None}"/> |
|---|
| 21 | Show my finished reviews.</label> |
|---|
| 22 | <input type="hidden" value="${allcreated or None}" name="allcreated" /> |
|---|
| 23 | <input type="submit" value="Update" name="update" /> |
|---|
| 24 | <p class="help">When selected the list will include reviews already finished and marked as |
|---|
| 25 | <strong>reviewed</strong> by the reviewer. Note that reviews which are marked as finished by the author |
|---|
| 26 | will not be shown. |
|---|
| 27 | </p> |
|---|
| 28 | </fieldset> |
|---|
| 29 | </form> |
|---|
| 30 | |
|---|
| 31 | <!--! Display your currently assigned code reviews in a table --> |
|---|
| 32 | <table class="listing dirlist" id="assignedreviewlist"> |
|---|
| 33 | <thead> |
|---|
| 34 | <tr> |
|---|
| 35 | <th>Review</th> |
|---|
| 36 | <th>Author</th> |
|---|
| 37 | <th>Name</th> |
|---|
| 38 | <th>Review Status</th> |
|---|
| 39 | <th>My Status</th> |
|---|
| 40 | <th># Comments</th> |
|---|
| 41 | <th># Not Read</th> |
|---|
| 42 | <th>Date Created</th> |
|---|
| 43 | <th>Date Finished</th> |
|---|
| 44 | <th>Files</th> |
|---|
| 45 | </tr> |
|---|
| 46 | </thead> |
|---|
| 47 | <tbody py:with="cls=cycle(('odd', 'even'))"> |
|---|
| 48 | <!--! if there are no reviews open for you, state this in the table --> |
|---|
| 49 | <tr py:if="not assigned_reviews"> |
|---|
| 50 | <td>There are no code reviews assigned to you.</td> |
|---|
| 51 | <td/> |
|---|
| 52 | <td/> |
|---|
| 53 | <td/> |
|---|
| 54 | <td/> |
|---|
| 55 | <td/> |
|---|
| 56 | <td/> |
|---|
| 57 | <td/> |
|---|
| 58 | <td/> |
|---|
| 59 | <td/> |
|---|
| 60 | </tr> |
|---|
| 61 | <tr py:for="item in assigned_reviews" class="${cls.next()}"> |
|---|
| 62 | <!--! Set up the table with the appropriate values and then links to view the review --> |
|---|
| 63 | <td><a href="${href.peerReviewView()}?Review=${item['review_id']}">${item['review_id']}</a></td> |
|---|
| 64 | <td>${item['owner']}</td> |
|---|
| 65 | <td><a href="${href.peerReviewView()}?Review=${item['review_id']}">${item['name']}</a></td> |
|---|
| 66 | <td>${item['status']}</td> |
|---|
| 67 | <td>${item.reviewer['status']}</td> |
|---|
| 68 | <td>$item.num_comments</td> |
|---|
| 69 | <td py:attrs="{'class': 'comment-notread'} if item.num_notread else None">$item.num_notread</td> |
|---|
| 70 | <td>${item.date}</td> |
|---|
| 71 | <td>${item.finish_date}</td> |
|---|
| 72 | <td> |
|---|
| 73 | <p py:for="file in item.rev_files" class="path"> |
|---|
| 74 | <a href="${href.peerReviewPerform(IDFile=file['file_id'])}">${file['path']} @ ${file['revision']}</a> |
|---|
| 75 | </p> |
|---|
| 76 | </td> |
|---|
| 77 | </tr> |
|---|
| 78 | </tbody> |
|---|
| 79 | </table> |
|---|
| 80 | |
|---|
| 81 | <h2>This is a list of code reviews created by you.</h2> |
|---|
| 82 | <form action="" method="get"> |
|---|
| 83 | <fieldset> |
|---|
| 84 | <label><input type="checkbox" value="1" name="allcreated" checked="${allcreated or None}"/> |
|---|
| 85 | Show closed reviews.</label> |
|---|
| 86 | <input type="hidden" value="${allassigned or None}" name="allassigned" /> |
|---|
| 87 | <input type="submit" value="Update" name="update" /> |
|---|
| 88 | <p class="help">When selected the list will include reviews marked as <strong>closed</strong>. These |
|---|
| 89 | are obsolete reviews. |
|---|
| 90 | </p> |
|---|
| 91 | </fieldset> |
|---|
| 92 | </form> |
|---|
| 93 | <table class="listing dirlist" id="myreviewlist"> |
|---|
| 94 | <thead> |
|---|
| 95 | <tr> |
|---|
| 96 | <th>Review</th> |
|---|
| 97 | <th>Name</th> |
|---|
| 98 | <th>Review Status</th> |
|---|
| 99 | <th># Comments</th> |
|---|
| 100 | <th># Not Read</th> |
|---|
| 101 | <th>Date Created</th> |
|---|
| 102 | <th>Date Finished</th> |
|---|
| 103 | <th>Files</th> |
|---|
| 104 | </tr> |
|---|
| 105 | </thead> |
|---|
| 106 | <tbody py:with="cls=cycle(('odd', 'even'))"> |
|---|
| 107 | <!--! if there are no reviews open for you, state this in the table --> |
|---|
| 108 | <tr py:if="not myreviews"> |
|---|
| 109 | <td>You have no code reviews currently open.</td> |
|---|
| 110 | <td/> |
|---|
| 111 | <td/> |
|---|
| 112 | <td/> |
|---|
| 113 | <td/> |
|---|
| 114 | <td/> |
|---|
| 115 | <td/> |
|---|
| 116 | <td/> |
|---|
| 117 | </tr> |
|---|
| 118 | <tr py:for="item in myreviews" class="${cls.next()}"> |
|---|
| 119 | <!--! Set up the table with the appropriate values and then links to view the review --> |
|---|
| 120 | <td><a href="${href.peerReviewView()}?Review=${item['review_id']}">${item['review_id']}</a></td> |
|---|
| 121 | <td><a href="${href.peerReviewView()}?Review=${item['review_id']}">${item['name']}</a></td> |
|---|
| 122 | <td>${item['status']}</td> |
|---|
| 123 | <td>$item.num_comments</td> |
|---|
| 124 | <td py:attrs="{'class': 'comment-notread'} if item.num_notread else None">$item.num_notread</td> |
|---|
| 125 | <td>${item.date}</td> |
|---|
| 126 | <td>${item.finish_date}</td> |
|---|
| 127 | <td> |
|---|
| 128 | <p py:for="file in item.rev_files" class="path"> |
|---|
| 129 | <a href="${href.peerReviewPerform(IDFile=file['file_id'])}">${file['path']} @ ${file['revision']}</a> |
|---|
| 130 | </p> |
|---|
| 131 | </td> |
|---|
| 132 | </tr> |
|---|
| 133 | </tbody> |
|---|
| 134 | </table> |
|---|
| 135 | |
|---|
| 136 | </div> |
|---|
| 137 | </body> |
|---|
| 138 | </html> |
|---|