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