##// END OF EJS Templates
fixed instructions for git
marcink -
r1786:02a26ed0 beta
parent child Browse files
Show More
@@ -1,77 +1,77 b''
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">${_('commit message')}</th>
5 <th class="left">${_('commit message')}</th>
6 <th class="left">${_('age')}</th>
6 <th class="left">${_('age')}</th>
7 <th class="left">${_('author')}</th>
7 <th class="left">${_('author')}</th>
8 <th class="left">${_('revision')}</th>
8 <th class="left">${_('revision')}</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 ${h.link_to(h.truncate(cs.message,50),
15 ${h.link_to(h.truncate(cs.message,50),
16 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
16 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
17 title=cs.message)}
17 title=cs.message)}
18 </td>
18 </td>
19 <td><span class="tooltip" title="${cs.date}">
19 <td><span class="tooltip" title="${cs.date}">
20 ${h.age(cs.date)}</span>
20 ${h.age(cs.date)}</span>
21 </td>
21 </td>
22 <td title="${cs.author}">${h.person(cs.author)}</td>
22 <td title="${cs.author}">${h.person(cs.author)}</td>
23 <td><div><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></div></td>
23 <td><div><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></div></td>
24 <td>
24 <td>
25 <span class="logtags">
25 <span class="logtags">
26 <span class="branchtag">${cs.branch}</span>
26 <span class="branchtag">${cs.branch}</span>
27 </span>
27 </span>
28 </td>
28 </td>
29 <td>
29 <td>
30 <span class="logtags">
30 <span class="logtags">
31 %for tag in cs.tags:
31 %for tag in cs.tags:
32 <span class="tagtag">${tag}</span>
32 <span class="tagtag">${tag}</span>
33 %endfor
33 %endfor
34 </span>
34 </span>
35 </td>
35 </td>
36 </tr>
36 </tr>
37 %endfor
37 %endfor
38
38
39 </table>
39 </table>
40
40
41 <script type="text/javascript">
41 <script type="text/javascript">
42 YUE.onDOMReady(function(){
42 YUE.onDOMReady(function(){
43 YUE.delegate("shortlog_data","click",function(e, matchedEl, container){
43 YUE.delegate("shortlog_data","click",function(e, matchedEl, container){
44 ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();});
44 ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();});
45 YUE.preventDefault(e);
45 YUE.preventDefault(e);
46 },'.pager_link');
46 },'.pager_link');
47 });
47 });
48 </script>
48 </script>
49
49
50 <div class="pagination-wh pagination-left">
50 <div class="pagination-wh pagination-left">
51 ${c.repo_changesets.pager('$link_previous ~2~ $link_next')}
51 ${c.repo_changesets.pager('$link_previous ~2~ $link_next')}
52 </div>
52 </div>
53 %else:
53 %else:
54
54
55 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
55 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name):
56 <h4>${_('Add or upload files directly via RhodeCode')}</h4>
56 <h4>${_('Add or upload files directly via RhodeCode')}</h4>
57 <div style="margin: 20px 30px;">
57 <div style="margin: 20px 30px;">
58 <div id="add_node_id" class="add_node">
58 <div id="add_node_id" class="add_node">
59 <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='')}">${_('add new file')}</a>
59 <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='')}">${_('add new file')}</a>
60 </div>
60 </div>
61 </div>
61 </div>
62 %endif
62 %endif
63
63
64
64
65 <h4>${_('Push new repo')}</h4>
65 <h4>${_('Push new repo')}</h4>
66 <pre>
66 <pre>
67 hg clone ${c.clone_repo_url}
67 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url}
68 hg add README # add first file
68 ${c.rhodecode_repo.alias} add README # add first file
69 hg commit -m "Initial" # commit with message
69 ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message
70 hg push # push changes back
70 ${c.rhodecode_repo.alias} push # push changes back
71 </pre>
71 </pre>
72
72
73 <h4>${_('Existing repository?')}</h4>
73 <h4>${_('Existing repository?')}</h4>
74 <pre>
74 <pre>
75 hg push ${c.clone_repo_url}
75 ${c.rhodecode_repo.alias} push ${c.clone_repo_url}
76 </pre>
76 </pre>
77 %endif
77 %endif
General Comments 0
You need to be logged in to leave comments. Login now