Show More
@@ -1,136 +1,136 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%namespace name="base" file="/base/base.mako"/> |
|
3 | 3 | %if c.repo_commits: |
|
4 | 4 | <table class="rctable repo_summary table_disp"> |
|
5 | 5 | <tr> |
|
6 | 6 | |
|
7 | 7 | <th class="status" colspan="2"></th> |
|
8 | 8 | <th>${_('Commit')}</th> |
|
9 | 9 | <th>${_('Commit message')}</th> |
|
10 | 10 | <th>${_('Age')}</th> |
|
11 | 11 | <th>${_('Author')}</th> |
|
12 | 12 | <th>${_('Refs')}</th> |
|
13 | 13 | </tr> |
|
14 | 14 | %for cnt,cs in enumerate(c.repo_commits): |
|
15 | 15 | <tr class="parity${cnt%2}"> |
|
16 | 16 | |
|
17 | 17 | <td class="td-status"> |
|
18 | 18 | %if c.statuses.get(cs.raw_id): |
|
19 | 19 | <div class="changeset-status-ico shortlog"> |
|
20 | 20 | %if c.statuses.get(cs.raw_id)[2]: |
|
21 | 21 | <a class="tooltip" title="${_('Commit status: %s\nClick to open associated pull request #%s') % (c.statuses.get(cs.raw_id)[0], c.statuses.get(cs.raw_id)[2])}" href="${h.route_path('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}"> |
|
22 | 22 | <div class="${'flag_status {}'.format(c.statuses.get(cs.raw_id)[0])}"></div> |
|
23 | 23 | </a> |
|
24 | 24 | %else: |
|
25 | 25 | <a class="tooltip" title="${_('Commit status: {}').format(h.commit_status_lbl(c.statuses.get(cs.raw_id)[0]))}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}"> |
|
26 | 26 | <div class="${'flag_status {}'.format(c.statuses.get(cs.raw_id)[0])}"></div> |
|
27 | 27 | </a> |
|
28 | 28 | %endif |
|
29 | 29 | </div> |
|
30 | 30 | %else: |
|
31 | 31 | <div class="tooltip flag_status not_reviewed" title="${_('Commit status: Not Reviewed')}"></div> |
|
32 | 32 | %endif |
|
33 | 33 | </td> |
|
34 | 34 | <td class="td-comments"> |
|
35 | 35 | %if c.comments.get(cs.raw_id,[]): |
|
36 | 36 | <a title="${_('Commit has comments')}" href="${h.route_path('repo_commit',repo_name=c.repo_name,commit_id=cs.raw_id,_anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}"> |
|
37 | 37 | <i class="icon-comment"></i> ${len(c.comments[cs.raw_id])} |
|
38 | 38 | </a> |
|
39 | 39 | %endif |
|
40 | 40 | </td> |
|
41 | 41 | <td class="td-commit"> |
|
42 | 42 | <pre><a href="${h.route_path('repo_commit', repo_name=c.repo_name, commit_id=cs.raw_id)}">${h.show_id(cs)}</a></pre> |
|
43 | 43 | </td> |
|
44 | 44 | |
|
45 | 45 | <td class="td-description mid"> |
|
46 | 46 | <div class="log-container truncate-wrap"> |
|
47 | 47 | <div class="message truncate" id="c-${cs.raw_id}">${h.urlify_commit_message(cs.message, c.repo_name)}</div> |
|
48 | 48 | </div> |
|
49 | 49 | </td> |
|
50 | 50 | |
|
51 | 51 | <td class="td-time"> |
|
52 | 52 | ${h.age_component(cs.date)} |
|
53 | 53 | </td> |
|
54 | 54 | <td class="td-user author"> |
|
55 | 55 | ${base.gravatar_with_user(cs.author)} |
|
56 | 56 | </td> |
|
57 | 57 | |
|
58 | 58 | <td class="td-tags"> |
|
59 | 59 | <div class="autoexpand"> |
|
60 | 60 | %if h.is_hg(c.rhodecode_repo): |
|
61 | 61 | %for book in cs.bookmarks: |
|
62 | 62 | <span class="booktag tag" title="${h.tooltip(_('Bookmark %s') % book)}"> |
|
63 | 63 | <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=cs.raw_id, _query=dict(at=book))}"><i class="icon-bookmark"></i>${h.shorter(book)}</a> |
|
64 | 64 | </span> |
|
65 | 65 | %endfor |
|
66 | 66 | %endif |
|
67 | 67 | ## tags |
|
68 | 68 | %for tag in cs.tags: |
|
69 | 69 | <span class="tagtag tag" title="${h.tooltip(_('Tag %s') % tag)}"> |
|
70 | 70 | <a href="${h.route_path('repo_files:default_path',repo_name=c.repo_name,commit_id=cs.raw_id, _query=dict(at=tag))}"><i class="icon-tag"></i>${h.shorter(tag)}</a> |
|
71 | 71 | </span> |
|
72 | 72 | %endfor |
|
73 | 73 | |
|
74 | 74 | ## branch |
|
75 | 75 | %if cs.branch: |
|
76 | 76 | <span class="branchtag tag" title="${h.tooltip(_('Branch %s') % cs.branch)}"> |
|
77 | 77 | <a href="${h.route_path('repo_changelog',repo_name=c.repo_name,_query=dict(branch=cs.branch))}"><i class="icon-code-fork"></i>${h.shorter(cs.branch)}</a> |
|
78 | 78 | </span> |
|
79 | 79 | %endif |
|
80 | 80 | </div> |
|
81 | 81 | </td> |
|
82 | 82 | </tr> |
|
83 | 83 | %endfor |
|
84 | 84 | |
|
85 | 85 | </table> |
|
86 | 86 | |
|
87 | 87 | <script type="text/javascript"> |
|
88 | $(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 2000, scrollTo: false }); | |
|
88 | $(document).pjax('#shortlog_data .pager_link','#shortlog_data', {timeout: 2000, scrollTo: false, push: false}); | |
|
89 | 89 | $(document).on('pjax:success', function(){ timeagoActivate(); }); |
|
90 | 90 | </script> |
|
91 | 91 | |
|
92 | 92 | <div class="pagination-wh pagination-left"> |
|
93 | 93 | ${c.repo_commits.pager('$link_previous ~2~ $link_next')} |
|
94 | 94 | </div> |
|
95 | 95 | %else: |
|
96 | 96 | |
|
97 | 97 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): |
|
98 | 98 | <div class="quick_start"> |
|
99 | 99 | <div class="fieldset"> |
|
100 | 100 | <div class="left-label">${_('Add or upload files directly via RhodeCode:')}</div> |
|
101 | 101 | <div class="right-content"> |
|
102 | 102 | <div id="add_node_id" class="add_node"> |
|
103 | 103 | <a href="${h.route_path('repo_files_add_file',repo_name=c.repo_name,commit_id=0, f_path='', _anchor='edit')}" class="btn btn-default">${_('Add New File')}</a> |
|
104 | 104 | </div> |
|
105 | 105 | </div> |
|
106 | 106 | %endif |
|
107 | 107 | </div> |
|
108 | 108 | |
|
109 | 109 | %if not h.is_svn(c.rhodecode_repo): |
|
110 | 110 | <div class="fieldset"> |
|
111 | 111 | <div class="left-label">${_('Push new repo:')}</div> |
|
112 | 112 | <div class="right-content"> |
|
113 | 113 | <pre> |
|
114 | 114 | ${c.rhodecode_repo.alias} clone ${c.clone_repo_url} |
|
115 | 115 | ${c.rhodecode_repo.alias} add README # add first file |
|
116 | 116 | ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message |
|
117 | 117 | ${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back |
|
118 | 118 | </pre> |
|
119 | 119 | </div> |
|
120 | 120 | </div> |
|
121 | 121 | <div class="fieldset"> |
|
122 | 122 | <div class="left-label">${_('Existing repository?')}</div> |
|
123 | 123 | <div class="right-content"> |
|
124 | 124 | <pre> |
|
125 | 125 | %if h.is_git(c.rhodecode_repo): |
|
126 | 126 | git remote add origin ${c.clone_repo_url} |
|
127 | 127 | git push -u origin master |
|
128 | 128 | %else: |
|
129 | 129 | hg push ${c.clone_repo_url} |
|
130 | 130 | %endif |
|
131 | 131 | </pre> |
|
132 | 132 | </div> |
|
133 | 133 | </div> |
|
134 | 134 | %endif |
|
135 | 135 | </div> |
|
136 | 136 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now