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