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