Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 42 lines (41 sloc) 1.63 kb
9417596 @rgs First version of the cherrymaint app
authored
1 <script type="text/javascript">
2 function markCommit(commit,value) {
3 $.ajax({
4 url: '/mark?commit=' + commit + '&value=' + value,
5 type: 'GET',
6 dataType: 'html',
7 cache: false,
8 async: false,
9 success: function(res) {
10 $('#tr' + commit).removeClass("status0");
11 $('#tr' + commit).removeClass("status1");
12 $('#tr' + commit).removeClass("status2");
13 $('#tr' + commit).removeClass("status3");
14 $('#tr' + commit).removeClass("status4");
15 $('#tr' + commit).removeClass("status5");
16 $('#tr' + commit).addClass('status' + value);
17 },
18 error: function(req, st, error) {
19 alert("Couldn't update the DB");
20 }
21 });
22 }
23 </script>
24 <table>
25 <% FOREACH commit IN commits %>
26 <tr id="tr<% commit.sha1 %>" class="status<% commit.status %>">
27 <td>
28 <select name="status<% commit.sha1 %>" onChange="markCommit('<% commit.sha1 %>',this.value)">
29 <option value="0" <% commit.status == 0 ? "selected" : "" %>>Unexamined</option>
30 <option value="1" <% commit.status == 1 ? "selected" : "" %>>Rejected</option>
31 <option value="2" <% commit.status == 2 ? "selected" : "" %>>Requested</option>
32 <option value="3" <% commit.status == 3 ? "selected" : "" %>>Seconded</option>
33 <option value="4" <% commit.status == 4 ? "selected" : "" %>>Approved</option>
34 <option value="5" <% commit.status == 5 ? "selected" : "" %>>Cherry-picked</option>
35 </select>
36 </td>
eb4834c @rgs Move select box to front
authored
37 <td><a href="http://perl5.git.perl.org/perl.git/commitdiff/<% commit.sha1 %>"><% commit.sha1 %></a></td>
38 <td><% commit.msg %></td>
9417596 @rgs First version of the cherrymaint app
authored
39 </tr>
40 <% END %>
41 <table>
Something went wrong with that request. Please try again.