Auto status change to "Under Review"
Show More
@@ -1,167 +1,169 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%namespace name="base" file="/base/base.mako"/> |
|
3 | 3 | %if c.repo_commits: |
|
4 | 4 | <table class="rctable table-bordered"> |
|
5 | 5 | <tr> |
|
6 | 6 | |
|
7 | 7 | <th class="status"></th> |
|
8 | 8 | <th></th> |
|
9 | 9 | <th>${_('Commit message')}</th> |
|
10 | 10 | <th>${_('Age')}</th> |
|
11 | 11 | <th>${_('Author')}</th> |
|
12 | 12 | <th colspan="2">${_('Refs')}</th> |
|
13 | 13 | </tr> |
|
14 | 14 | |
|
15 | 15 | ## to speed up lookups cache some functions before the loop |
|
16 | 16 | <% |
|
17 | 17 | active_patterns = h.get_active_pattern_entries(c.repo_name) |
|
18 | 18 | urlify_commit_message = h.partial(h.urlify_commit_message, active_pattern_entries=active_patterns) |
|
19 | 19 | %> |
|
20 | 20 | %for cnt,cs in enumerate(c.repo_commits): |
|
21 | 21 | <tr class="parity${cnt%2}"> |
|
22 | 22 | |
|
23 | 23 | <td class="td-status"> |
|
24 | 24 | %if c.statuses.get(cs.raw_id): |
|
25 | 25 | <div class="changeset-status-ico shortlog"> |
|
26 | 26 | %if c.statuses.get(cs.raw_id)[2]: |
|
27 | 27 | <a class="tooltip" title="${_('Commit status: %s\nClick to open associated pull request #%s') % (c.statuses.get(cs.raw_id)[0], c.statuses.get(cs.raw_id)[2])}" href="${h.route_path('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}"> |
|
28 | 28 | <i class="icon-circle review-status-${c.statuses.get(cs.raw_id)[0]}"></i> |
|
29 | 29 | </a> |
|
30 | 30 | %else: |
|
31 | 31 | <a class="tooltip" title="${_('Commit status: {}').format(h.commit_status_lbl(c.statuses.get(cs.raw_id)[0]))}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}"> |
|
32 | 32 | <i class="icon-circle review-status-${c.statuses.get(cs.raw_id)[0]}"></i> |
|
33 | 33 | </a> |
|
34 | 34 | %endif |
|
35 | 35 | </div> |
|
36 | 36 | %else: |
|
37 | 37 | <i class="icon-circle review-status-not_reviewed" title="${_('Commit status: Not Reviewed')}"></i> |
|
38 | 38 | %endif |
|
39 | 39 | </td> |
|
40 | 40 | <td class="td-hash"> |
|
41 | 41 | <code> |
|
42 | 42 | <a href="${h.route_path('repo_commit', repo_name=c.repo_name, commit_id=cs.raw_id)}">${h.show_id(cs)}</a> |
|
43 | 43 | <i class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${cs.raw_id}" title="${_('Copy the full commit id')}"></i> |
|
44 | 44 | </code> |
|
45 | 45 | </td> |
|
46 | 46 | |
|
47 | 47 | <td class="td-description mid"> |
|
48 | 48 | <div class="log-container truncate-wrap"> |
|
49 | 49 | <div class="message truncate" id="c-${cs.raw_id}">${urlify_commit_message(cs.message, c.repo_name)}</div> |
|
50 | 50 | </div> |
|
51 | 51 | </td> |
|
52 | 52 | |
|
53 | 53 | <td class="td-time"> |
|
54 | 54 | ${h.age_component(cs.date)} |
|
55 | 55 | </td> |
|
56 | 56 | <td class="td-user author"> |
|
57 | 57 | ${base.gravatar_with_user(cs.author, tooltip=True)} |
|
58 | 58 | </td> |
|
59 | 59 | |
|
60 | 60 | <td class="td-tags"> |
|
61 | 61 | <div class="autoexpand"> |
|
62 | 62 | %if h.is_hg(c.rhodecode_repo): |
|
63 | 63 | %for book in cs.bookmarks: |
|
64 | 64 | <span class="booktag tag" title="${h.tooltip(_('Bookmark %s') % book)}"> |
|
65 | 65 | <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=cs.raw_id, _query=dict(at=book))}"><i class="icon-bookmark"></i>${h.shorter(book)}</a> |
|
66 | 66 | </span> |
|
67 | 67 | %endfor |
|
68 | 68 | %endif |
|
69 | 69 | ## tags |
|
70 | 70 | %for tag in cs.tags: |
|
71 | 71 | <span class="tagtag tag" title="${h.tooltip(_('Tag %s') % tag)}"> |
|
72 | 72 | <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=cs.raw_id, _query=dict(at=tag))}"><i class="icon-tag"></i>${h.shorter(tag)}</a> |
|
73 | 73 | </span> |
|
74 | 74 | %endfor |
|
75 | 75 | |
|
76 | 76 | ## branch |
|
77 | 77 | %if cs.branch: |
|
78 | 78 | <span class="branchtag tag" title="${h.tooltip(_('Branch %s') % cs.branch)}"> |
|
79 | 79 | <a href="${h.route_path('repo_commits',repo_name=c.repo_name,_query=dict(branch=cs.branch))}"><i class="icon-code-fork"></i>${h.shorter(cs.branch)}</a> |
|
80 | 80 | </span> |
|
81 | 81 | %endif |
|
82 | 82 | </div> |
|
83 | 83 | </td> |
|
84 | 84 | <td class="td-comments"> |
|
85 | 85 | <% cs_comments = c.comments.get(cs.raw_id,[]) %> |
|
86 | 86 | % if cs_comments: |
|
87 | 87 | <a title="${_('Commit has comments')}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % cs_comments[0].comment_id)}"> |
|
88 | 88 | <i class="icon-comment"></i> ${len(cs_comments)} |
|
89 | 89 | </a> |
|
90 | 90 | % else: |
|
91 | 91 | <i class="icon-comment"></i> ${len(cs_comments)} |
|
92 | 92 | % endif |
|
93 | 93 | </td> |
|
94 | 94 | </tr> |
|
95 | 95 | %endfor |
|
96 | 96 | |
|
97 | 97 | </table> |
|
98 | 98 | |
|
99 | 99 | <script type="text/javascript"> |
|
100 | 100 | $(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 5000, scrollTo: false, push: false}); |
|
101 | 101 | $(document).on('pjax:success', function(){ timeagoActivate(); tooltipActivate();}); |
|
102 | 102 | $(document).on('pjax:timeout', function(event) { |
|
103 | 103 | // Prevent default timeout redirection behavior |
|
104 | 104 | event.preventDefault() |
|
105 | 105 | }) |
|
106 | 106 | |
|
107 | 107 | </script> |
|
108 | 108 | |
|
109 | 109 | <div class="pagination-wh pagination-left"> |
|
110 | 110 | ${c.repo_commits.render()} |
|
111 | 111 | </div> |
|
112 | 112 | %else: |
|
113 | 113 |
|
|
114 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): | |
|
114 | ||
|
115 | 115 | <div class="quick_start"> |
|
116 | 116 | <div class="fieldset"> |
|
117 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): | |
|
117 | 118 | <p><b>${_('Add or upload files directly via RhodeCode:')}</b></p> |
|
118 | 119 | <div class="pull-left"> |
|
119 | 120 | <a href="${h.route_path('repo_files_add_file',repo_name=c.repo_name,commit_id=0, f_path='')}" class="btn btn-default">${_('Add New File')}</a> |
|
120 | 121 | </div> |
|
121 | 122 | <div class="pull-left"> |
|
122 | 123 | <a href="${h.route_path('repo_files_upload_file',repo_name=c.repo_name,commit_id=0, f_path='')}" class="btn btn-default">${_('Upload New File')}</a> |
|
123 | 124 | </div> |
|
124 | 125 | %endif |
|
125 | 126 | </div> |
|
126 | 127 | |
|
128 | ||
|
127 | 129 | <div class="fieldset"> |
|
128 | 130 | <p><b>${_('Push new repo:')}</b></p> |
|
129 | 131 | <pre> |
|
130 | 132 | %if h.is_git(c.rhodecode_repo): |
|
131 | 133 | git clone ${c.clone_repo_url} |
|
132 | 134 | git add README # add first file |
|
133 | 135 | git commit -m "Initial commit" # commit with message |
|
134 | 136 | git remote add origin ${c.clone_repo_url} |
|
135 | 137 | git push -u origin master # push changes back to default master branch |
|
136 | 138 | %elif h.is_hg(c.rhodecode_repo): |
|
137 | 139 | hg clone ${c.clone_repo_url} |
|
138 | 140 | hg add README # add first file |
|
139 | 141 | hg commit -m "Initial commit" # commit with message |
|
140 | 142 | hg push ${c.clone_repo_url} |
|
141 | 143 | %elif h.is_svn(c.rhodecode_repo): |
|
142 | 144 | svn co ${c.clone_repo_url} |
|
143 | 145 | svn add README # add first file |
|
144 | 146 | svn commit -m "Initial commit" |
|
145 | 147 | svn commit # send changes back to the server |
|
146 | 148 | %endif |
|
147 | 149 | </pre> |
|
148 | 150 | </div> |
|
149 | 151 | |
|
150 | 152 | <div class="fieldset"> |
|
151 | 153 | <p><b>${_('Existing repository?')}</b></p> |
|
152 | 154 | <pre> |
|
153 | 155 | %if h.is_git(c.rhodecode_repo): |
|
154 | 156 | git remote add origin ${c.clone_repo_url} |
|
155 | 157 | git push -u origin master |
|
156 | 158 | %elif h.is_hg(c.rhodecode_repo): |
|
157 | 159 | hg push ${c.clone_repo_url} |
|
158 | 160 | %elif h.is_svn(c.rhodecode_repo): |
|
159 | 161 | svn co ${c.clone_repo_url} |
|
160 | 162 | %endif |
|
161 | 163 | </pre> |
|
162 | 164 | |
|
163 | 165 | </div> |
|
164 | 166 | |
|
165 | 167 | |
|
166 | 168 | </div> |
|
167 | 169 | %endif |
General Comments 1
You need to be logged in to leave comments.
Login now