##// END OF EJS Templates
use show_id also in lightweight changelog
marcink -
r3564:82b2d1a2 beta
parent child Browse files
Show More
@@ -1,101 +1,101
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 %if c.repo_changesets:
2 %if c.repo_changesets:
3 <table class="table_disp">
3 <table class="table_disp">
4 <tr>
4 <tr>
5 <th class="left">${_('revision')}</th>
5 <th class="left">${_('revision')}</th>
6 <th class="left">${_('commit message')}</th>
6 <th class="left">${_('commit message')}</th>
7 <th class="left">${_('age')}</th>
7 <th class="left">${_('age')}</th>
8 <th class="left">${_('author')}</th>
8 <th class="left">${_('author')}</th>
9 <th class="left">${_('branch')}</th>
9 <th class="left">${_('branch')}</th>
10 <th class="left">${_('tags')}</th>
10 <th class="left">${_('tags')}</th>
11 </tr>
11 </tr>
12 %for cnt,cs in enumerate(c.repo_changesets):
12 %for cnt,cs in enumerate(c.repo_changesets):
13 <tr class="parity${cnt%2}">
13 <tr class="parity${cnt%2}">
14 <td>
14 <td>
15 <div>
15 <div>
16 <div class="changeset-status-container">
16 <div class="changeset-status-container">
17 %if c.statuses.get(cs.raw_id):
17 %if c.statuses.get(cs.raw_id):
18 <div class="changeset-status-ico">
18 <div class="changeset-status-ico">
19 %if c.statuses.get(cs.raw_id)[2]:
19 %if c.statuses.get(cs.raw_id)[2]:
20 <a class="tooltip" title="${_('Click to open associated pull request #%s' % c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
20 <a class="tooltip" title="${_('Click to open associated pull request #%s' % c.statuses.get(cs.raw_id)[2])}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
21 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
21 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
22 </a>
22 </a>
23 %else:
23 %else:
24 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
24 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" />
25 %endif
25 %endif
26 </div>
26 </div>
27 %endif
27 %endif
28 </div>
28 </div>
29 <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}">r${cs.revision}:${h.short_id(cs.raw_id)}</a></pre>
29 <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}">${h.show_id(cs)}</a></pre>
30 </div>
30 </div>
31 </td>
31 </td>
32 <td>
32 <td>
33 ${h.urlify_commit(h.truncate(cs.message,50),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
33 ${h.urlify_commit(h.truncate(cs.message,50),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
34 </td>
34 </td>
35 <td><span class="tooltip" title="${h.tooltip(h.fmt_date(cs.date))}">
35 <td><span class="tooltip" title="${h.tooltip(h.fmt_date(cs.date))}">
36 ${h.age(cs.date)}</span>
36 ${h.age(cs.date)}</span>
37 </td>
37 </td>
38 <td title="${cs.author}">${h.person(cs.author)}</td>
38 <td title="${cs.author}">${h.person(cs.author)}</td>
39 <td>
39 <td>
40 <span class="logtags">
40 <span class="logtags">
41 %if cs.branch:
41 %if cs.branch:
42 <span class="branchtag">
42 <span class="branchtag">
43 ${cs.branch}
43 ${cs.branch}
44 </span>
44 </span>
45 %endif
45 %endif
46 </span>
46 </span>
47 </td>
47 </td>
48 <td>
48 <td>
49 <span class="logtags">
49 <span class="logtags">
50 %for tag in cs.tags:
50 %for tag in cs.tags:
51 <span class="tagtag">${tag}</span>
51 <span class="tagtag">${tag}</span>
52 %endfor
52 %endfor
53 </span>
53 </span>
54 </td>
54 </td>
55 </tr>
55 </tr>
56 %endfor
56 %endfor
57
57
58 </table>
58 </table>
59
59
60 <script type="text/javascript">
60 <script type="text/javascript">
61 YUE.onDOMReady(function(){
61 YUE.onDOMReady(function(){
62 YUE.delegate("shortlog_data","click",function(e, matchedEl, container){
62 YUE.delegate("shortlog_data","click",function(e, matchedEl, container){
63 ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();});
63 ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();});
64 YUE.preventDefault(e);
64 YUE.preventDefault(e);
65 },'.pager_link');
65 },'.pager_link');
66 });
66 });
67 </script>
67 </script>
68
68
69 <div class="pagination-wh pagination-left">
69 <div class="pagination-wh pagination-left">
70 ${c.repo_changesets.pager('$link_previous ~2~ $link_next')}
70 ${c.repo_changesets.pager('$link_previous ~2~ $link_next')}
71 </div>
71 </div>
72 %else:
72 %else:
73
73
74 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
74 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
75 <h4>${_('Add or upload files directly via RhodeCode')}</h4>
75 <h4>${_('Add or upload files directly via RhodeCode')}</h4>
76 <div style="margin: 20px 30px;">
76 <div style="margin: 20px 30px;">
77 <div id="add_node_id" class="add_node">
77 <div id="add_node_id" class="add_node">
78 <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='')}">${_('add new file')}</a>
78 <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='')}">${_('add new file')}</a>
79 </div>
79 </div>
80 </div>
80 </div>
81 %endif
81 %endif
82
82
83
83
84 <h4>${_('Push new repo')}</h4>
84 <h4>${_('Push new repo')}</h4>
85 <pre>
85 <pre>
86 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url}
86 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url}
87 ${c.rhodecode_repo.alias} add README # add first file
87 ${c.rhodecode_repo.alias} add README # add first file
88 ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message
88 ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message
89 ${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back
89 ${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back
90 </pre>
90 </pre>
91
91
92 <h4>${_('Existing repository?')}</h4>
92 <h4>${_('Existing repository?')}</h4>
93 <pre>
93 <pre>
94 %if h.is_git(c.rhodecode_repo):
94 %if h.is_git(c.rhodecode_repo):
95 git remote add origin ${c.clone_repo_url}
95 git remote add origin ${c.clone_repo_url}
96 git push -u origin master
96 git push -u origin master
97 %else:
97 %else:
98 hg push ${c.clone_repo_url}
98 hg push ${c.clone_repo_url}
99 %endif
99 %endif
100 </pre>
100 </pre>
101 %endif
101 %endif
General Comments 0
You need to be logged in to leave comments. Login now