Mercurial > kallithea
annotate rhodecode/templates/shortlog/shortlog_data.html @ 3266:91f4e30da32d beta
added show full diff into cut off message ref #745
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 30 Jan 2013 00:06:36 +0100 |
parents | 54a596abfa65 |
children | 82b2d1a21ae3 |
rev | line source |
---|---|
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
1 ## -*- coding: utf-8 -*- |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
2 %if c.repo_changesets: |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
3 <table class="table_disp"> |
3197 | 4 <tr> |
5 <th class="left">${_('revision')}</th> | |
1837
a6a30c919513
#73 mapping of commited issues from commit message into issue tracker url.
Marcin Kuzminski <marcin@python-works.com>
parents:
1786
diff
changeset
|
6 <th class="left">${_('commit message')}</th> |
3197 | 7 <th class="left">${_('age')}</th> |
8 <th class="left">${_('author')}</th> | |
9 <th class="left">${_('branch')}</th> | |
10 <th class="left">${_('tags')}</th> | |
11 </tr> | |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
12 %for cnt,cs in enumerate(c.repo_changesets): |
3197 | 13 <tr class="parity${cnt%2}"> |
636
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
635
diff
changeset
|
14 <td> |
2884
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
15 <div> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
16 <div class="changeset-status-container"> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
17 %if c.statuses.get(cs.raw_id): |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
18 <div class="changeset-status-ico"> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
19 %if c.statuses.get(cs.raw_id)[2]: |
3214
54a596abfa65
Show pull request id in tooltip of associated pull request
Marcin Kuzminski <marcin@python-works.com>
parents:
3197
diff
changeset
|
20 <a class="tooltip" title="${_('Click to open associated pull request #%s' % 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])}"> |
2884
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
21 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" /> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
22 </a> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
23 %else: |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
24 <img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses.get(cs.raw_id)[0])}" /> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
25 %endif |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
26 </div> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
27 %endif |
2907
0b86972de820
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2884
diff
changeset
|
28 </div> |
2884
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
29 <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> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
30 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
31 </td> |
1837
a6a30c919513
#73 mapping of commited issues from commit message into issue tracker url.
Marcin Kuzminski <marcin@python-works.com>
parents:
1786
diff
changeset
|
32 <td> |
3039
a520d542697e
Implemented file history page for showing detailed changelog for a given file
Marcin Kuzminski <marcin@python-works.com>
parents:
2907
diff
changeset
|
33 ${h.urlify_commit(h.truncate(cs.message,50),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))} |
799
6d37fe113da0
fixes to #85, some other small changes for summary page
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
34 </td> |
2427
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
2416
diff
changeset
|
35 <td><span class="tooltip" title="${h.tooltip(h.fmt_date(cs.date))}"> |
799
6d37fe113da0
fixes to #85, some other small changes for summary page
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
36 ${h.age(cs.date)}</span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
37 </td> |
3197 | 38 <td title="${cs.author}">${h.person(cs.author)}</td> |
39 <td> | |
40 <span class="logtags"> | |
2231
2cfaf199a5a7
Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents:
2198
diff
changeset
|
41 %if cs.branch: |
3197 | 42 <span class="branchtag"> |
1959
7a7ffe24b82c
optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents:
1938
diff
changeset
|
43 ${cs.branch} |
7a7ffe24b82c
optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents:
1938
diff
changeset
|
44 </span> |
2231
2cfaf199a5a7
Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents:
2198
diff
changeset
|
45 %endif |
3197 | 46 </span> |
47 </td> | |
48 <td> | |
49 <span class="logtags"> | |
50 %for tag in cs.tags: | |
51 <span class="tagtag">${tag}</span> | |
52 %endfor | |
53 </span> | |
54 </td> | |
55 </tr> | |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
56 %endfor |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
57 |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
58 </table> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
59 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
60 <script type="text/javascript"> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
995
diff
changeset
|
61 YUE.onDOMReady(function(){ |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
995
diff
changeset
|
62 YUE.delegate("shortlog_data","click",function(e, matchedEl, container){ |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
995
diff
changeset
|
63 ypjax(e.target.href,"shortlog_data",function(){tooltip_activate();}); |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
995
diff
changeset
|
64 YUE.preventDefault(e); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
65 },'.pager_link'); |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
995
diff
changeset
|
66 }); |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
67 </script> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
68 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
69 <div class="pagination-wh pagination-left"> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
995
diff
changeset
|
70 ${c.repo_changesets.pager('$link_previous ~2~ $link_next')} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
71 </div> |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
72 %else: |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
73 |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
74 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name): |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
75 <h4>${_('Add or upload files directly via RhodeCode')}</h4> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
76 <div style="margin: 20px 30px;"> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
77 <div id="add_node_id" class="add_node"> |
1756 | 78 <a class="ui-btn" href="${h.url('files_add_home',repo_name=c.repo_name,revision=0,f_path='')}">${_('add new file')}</a> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
79 </div> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
80 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
81 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
82 |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
83 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
84 <h4>${_('Push new repo')}</h4> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
85 <pre> |
1786
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
86 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url} |
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
87 ${c.rhodecode_repo.alias} add README # add first file |
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
88 ${c.rhodecode_repo.alias} commit -m "Initial" # commit with message |
2182
f635e8bdfb60
fix initial instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1959
diff
changeset
|
89 ${c.rhodecode_repo.alias} push ${'origin master' if h.is_git(c.rhodecode_repo) else ''} # push changes back |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
90 </pre> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
91 |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
92 <h4>${_('Existing repository?')}</h4> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
93 <pre> |
2659
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
94 %if h.is_git(c.rhodecode_repo): |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
95 git remote add origin ${c.clone_repo_url} |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
96 git push -u origin master |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
97 %else: |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
98 hg push ${c.clone_repo_url} |
2673
d5e42c00f3c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2659
diff
changeset
|
99 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
100 </pre> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
101 %endif |