Auto status change to "Under Review"
Show More
@@ -1,88 +1,88 b'' | |||
|
1 | 1 | ## Changesets table ! |
|
2 | 2 | <%namespace name="base" file="/base/base.mako"/> |
|
3 | 3 | |
|
4 | 4 | %if c.ancestor: |
|
5 | 5 | <div class="ancestor">${_('Compare was calculated based on this common ancestor commit')}: |
|
6 | 6 | <a href="${h.route_path('repo_commit', repo_name=c.repo_name, commit_id=c.ancestor)}">${h.short_id(c.ancestor)}</a> |
|
7 | 7 | <input id="common_ancestor" type="hidden" name="common_ancestor" value="${c.ancestor}"> |
|
8 | 8 | </div> |
|
9 | 9 | %endif |
|
10 | 10 | |
|
11 | 11 | <div class="container"> |
|
12 | 12 | <input type="hidden" name="__start__" value="revisions:sequence"> |
|
13 | 13 | <table class="rctable compare_view_commits"> |
|
14 | 14 | <tr> |
|
15 | 15 | % if hasattr(c, 'commit_versions'): |
|
16 | 16 | <th>ver</th> |
|
17 | 17 | % endif |
|
18 | 18 | <th>${_('Time')}</th> |
|
19 | 19 | <th>${_('Author')}</th> |
|
20 | 20 | <th>${_('Commit')}</th> |
|
21 | 21 | <th></th> |
|
22 | 22 | <th>${_('Description')}</th> |
|
23 | 23 | </tr> |
|
24 | 24 | ## to speed up lookups cache some functions before the loop |
|
25 | 25 | <% |
|
26 | 26 | active_patterns = h.get_active_pattern_entries(c.repo_name) |
|
27 | 27 | urlify_commit_message = h.partial(h.urlify_commit_message, active_pattern_entries=active_patterns) |
|
28 | 28 | %> |
|
29 | 29 | |
|
30 | 30 | %for commit in c.commit_ranges: |
|
31 | 31 | <tr id="row-${commit.raw_id}" |
|
32 | 32 | commit_id="${commit.raw_id}" |
|
33 | 33 | class="compare_select" |
|
34 | 34 | style="${'display: none' if c.collapse_all_commits else ''}" |
|
35 | 35 | > |
|
36 | 36 | % if hasattr(c, 'commit_versions'): |
|
37 | 37 | <td class="tooltip" title="${_('Pull request version this commit was introduced')}"> |
|
38 | 38 | <code>${('v{}'.format(c.commit_versions[commit.raw_id][0]) if c.commit_versions[commit.raw_id] else 'latest')}</code> |
|
39 | 39 | </td> |
|
40 | 40 | % endif |
|
41 | 41 | <td class="td-time"> |
|
42 | 42 | ${h.age_component(commit.date)} |
|
43 | 43 | </td> |
|
44 | 44 | <td class="td-user"> |
|
45 | 45 | ${base.gravatar_with_user(commit.author, 16, tooltip=True)} |
|
46 | 46 | </td> |
|
47 | 47 | <td class="td-hash"> |
|
48 | 48 | <code> |
|
49 | 49 | <a href="${h.route_path('repo_commit', repo_name=c.target_repo.repo_name, commit_id=commit.raw_id)}"> |
|
50 | 50 | r${commit.idx}:${h.short_id(commit.raw_id)} |
|
51 | 51 | </a> |
|
52 | 52 | ${h.hidden('revisions',commit.raw_id)} |
|
53 | 53 | </code> |
|
54 | 54 | </td> |
|
55 | 55 | <td class="td-message expand_commit" data-commit-id="${commit.raw_id}" title="${_('Expand commit message')}" onclick="commitsController.expandCommit(this); return false"> |
|
56 | 56 | <i class="icon-expand-linked"></i> |
|
57 | 57 | </td> |
|
58 | 58 | <td class="mid td-description"> |
|
59 | 59 | <div class="log-container truncate-wrap"> |
|
60 | 60 | <div class="message truncate" id="c-${commit.raw_id}" data-message-raw="${commit.message}">${urlify_commit_message(commit.message, c.repo_name, issues_container_callback=getattr(c, 'referenced_commit_issues', h.IssuesRegistry())(commit.serialize()))}</div> |
|
61 | 61 | </div> |
|
62 | 62 | </td> |
|
63 | 63 | </tr> |
|
64 | 64 | %endfor |
|
65 | 65 | <tr class="compare_select_hidden" style="${('' if c.collapse_all_commits else 'display: none')}"> |
|
66 |
<td colspan=" |
|
|
66 | <td colspan="7"> | |
|
67 | 67 | ${_ungettext('{} commit hidden, click expand to show them.', '{} commits hidden, click expand to show them.', len(c.commit_ranges)).format(len(c.commit_ranges))} |
|
68 | 68 | </td> |
|
69 | 69 | </tr> |
|
70 | 70 | % if not c.commit_ranges: |
|
71 | 71 | <tr class="compare_select"> |
|
72 | 72 | <td colspan="5"> |
|
73 | 73 | ${_('No commits in this compare')} |
|
74 | 74 | </td> |
|
75 | 75 | </tr> |
|
76 | 76 | % endif |
|
77 | 77 | </table> |
|
78 | 78 | <input type="hidden" name="__end__" value="revisions:sequence"> |
|
79 | 79 | |
|
80 | 80 | </div> |
|
81 | 81 | |
|
82 | 82 | <script> |
|
83 | 83 | commitsController = new CommitsController(); |
|
84 | 84 | $('.compare_select').on('click',function(e){ |
|
85 | 85 | var cid = $(this).attr('commit_id'); |
|
86 | 86 | $('#row-'+cid).toggleClass('hl', !$('#row-'+cid).hasClass('hl')); |
|
87 | 87 | }); |
|
88 | 88 | </script> |
General Comments 1
You need to be logged in to leave comments.
Login now