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