|
1 | 1 | <div style="margin-bottom:5px;">
|
2 |
| -<a class="btn btn-default" href="edit/">Edit</a> |
| 2 | + <a class="btn btn-default" href="edit/">Edit</a> |
3 | 3 |
|
4 |
| -<div class="btn-group"> |
5 |
| - <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Comment/Review <span class="caret"></span></a> |
6 |
| - <ul class="dropdown-menu"> |
7 |
| - <li><a href="comment/">Comment</a> |
8 |
| - <li><a href="review/">Review</a> |
9 |
| - </ul> |
10 |
| -</div> |
| 4 | + <div class="btn-group"> |
| 5 | + <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Comment/Review <span class="caret"></span></a> |
| 6 | + <ul class="dropdown-menu"> |
| 7 | + <li><a href="comment/">Comment</a> |
| 8 | + <li><a href="review/">Review</a> |
| 9 | + </ul> |
| 10 | + </div> |
11 | 11 |
|
12 |
| -<div class="btn-group"> |
13 |
| - <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Change Status <span class="caret"></span></a> |
14 |
| - <ul class="dropdown-menu" role="menu"> |
15 |
| - <li role="presentation" class="dropdown-header">Open statuses</li> |
16 |
| - <li role="presentation"><a href="status/review/">Needs review</a></li> |
17 |
| - <li role="presentation"><a href="status/author/">Waiting on Author</a></li> |
18 |
| - <li role="presentation"><a href="status/committer/">Ready for Committer</a></li> |
19 |
| - <li role="presentation" class="divider"></li> |
20 |
| - <li role="presentation" class="dropdown-header">Closed statuses</li> |
21 |
| - <li role="presentation"><a href="close/reject/" onclick="return verify_reject()">Rejected</a></li> |
22 |
| - <li role="presentation"><a href="close/withdrawn/" onclick="return verify_withdrawn()">Withdrawn</a></li> |
23 |
| - <li role="presentation"><a href="close/feedback/" onclick="return verify_returned()">Returned with feedback</a></li> |
24 |
| - <li role="presentation"><a href="close/next/?cfid={{cf.id}}" onclick="return verify_next()">Move to next CF</a></li> |
25 |
| - <li role="presentation"><a href="close/committed/" onclick="return flagCommitted({%if patch.committer%}'{{patch.committer}}'{%elif is_committer%}'{{user.username}}'{%else%}null{%endif%})">Committed</a></li> |
26 |
| - </ul> |
27 |
| -</div> |
| 12 | + <div class="btn-group"> |
| 13 | + <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Change Status <span class="caret"></span></a> |
| 14 | + <ul class="dropdown-menu" role="menu"> |
| 15 | + <li role="presentation" class="dropdown-header">Open statuses</li> |
| 16 | + <li role="presentation"><a href="status/review/">Needs review</a></li> |
| 17 | + <li role="presentation"><a href="status/author/">Waiting on Author</a></li> |
| 18 | + <li role="presentation"><a href="status/committer/">Ready for Committer</a></li> |
| 19 | + <li role="presentation" class="divider"></li> |
| 20 | + <li role="presentation" class="dropdown-header">Closed statuses</li> |
| 21 | + <li role="presentation"><a href="close/reject/" onclick="return verify_reject()">Rejected</a></li> |
| 22 | + <li role="presentation"><a href="close/withdrawn/" onclick="return verify_withdrawn()">Withdrawn</a></li> |
| 23 | + <li role="presentation"><a href="close/feedback/" onclick="return verify_returned()">Returned with feedback</a></li> |
| 24 | + <li role="presentation"><a href="close/next/?cfid={{cf.id}}" onclick="return verify_next()">Move to next CF</a></li> |
| 25 | + <li role="presentation"><a href="close/committed/" onclick="return flagCommitted({%if patch.committer%}'{{patch.committer}}'{%elif is_committer%}'{{user.username}}'{%else%}null{%endif%})">Committed</a></li> |
| 26 | + </ul> |
| 27 | + </div> |
28 | 28 |
|
29 |
| -{%if request.user.is_staff%} |
30 |
| -<div class="btn-group"> |
31 |
| - <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Send private mail <span class="caret"></span></a> |
32 |
| - <ul class="dropdown-menu"> |
33 |
| - <li><a href="send_email/?authors={{patch.id}}">Send mail to authors</a></li> |
34 |
| - <li><a href="send_email/?reviewers={{patch.id}}">Send mail to reviewers</a></li> |
35 |
| - <li><a href="send_email/?authors={{patch.id}}&reviewers={{patch.id}}">Send mail to authors and reviewers</a></li> |
36 |
| - </ul> |
37 |
| -</div> |
38 |
| -{%endif%} |
| 29 | + {%if request.user.is_staff%} |
| 30 | + <div class="btn-group"> |
| 31 | + <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#">Send private mail <span class="caret"></span></a> |
| 32 | + <ul class="dropdown-menu"> |
| 33 | + <li><a href="send_email/?authors={{patch.id}}">Send mail to authors</a></li> |
| 34 | + <li><a href="send_email/?reviewers={{patch.id}}">Send mail to reviewers</a></li> |
| 35 | + <li><a href="send_email/?authors={{patch.id}}&reviewers={{patch.id}}">Send mail to authors and reviewers</a></li> |
| 36 | + </ul> |
| 37 | + </div> |
| 38 | + {%endif%} |
39 | 39 |
|
40 |
| -</div> |
| 40 | + </div> |
0 commit comments