Mercurial > kallithea
annotate rhodecode/templates/shortlog/shortlog_data.html @ 3707:93de03499097 beta
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
- rename confusing name bookbook to booktag (as others similar names)
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 07 Apr 2013 23:11:17 +0200 |
parents | ec6354949623 |
children |
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> |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3564
diff
changeset
|
5 <th class="left">${_('Revision')}</th> |
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3564
diff
changeset
|
6 <th class="left">${_('Commit message')}</th> |
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3564
diff
changeset
|
7 <th class="left">${_('Age')}</th> |
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3564
diff
changeset
|
8 <th class="left">${_('Author')}</th> |
3707
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
9 <th class="left">${_('Refs')}</th> |
3197 | 10 </tr> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
11 %for cnt,cs in enumerate(c.repo_changesets): |
3197 | 12 <tr class="parity${cnt%2}"> |
636
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
635
diff
changeset
|
13 <td> |
2884
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
14 <div> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
15 <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
|
16 %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
|
17 <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
|
18 %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
|
19 <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
|
20 <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
|
21 </a> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
22 %else: |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
23 <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
|
24 %endif |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
25 </div> |
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
26 %endif |
2907
0b86972de820
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2884
diff
changeset
|
27 </div> |
3564
82b2d1a21ae3
use show_id also in lightweight changelog
Marcin Kuzminski <marcin@python-works.com>
parents:
3214
diff
changeset
|
28 <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id)}">${h.show_id(cs)}</a></pre> |
2884
a16f9a76c26f
#574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents:
2673
diff
changeset
|
29 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
30 </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
|
31 <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
|
32 ${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
|
33 </td> |
2427
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
2416
diff
changeset
|
34 <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
|
35 ${h.age(cs.date)}</span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
36 </td> |
3197 | 37 <td title="${cs.author}">${h.person(cs.author)}</td> |
38 <td> | |
3707
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
39 %if h.is_hg(c.rhodecode_repo): |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
40 %for book in cs.bookmarks: |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
41 <div class="booktag" title="${_('Bookmark %s') % book}"> |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
42 ${h.link_to(h.shorter(book),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
43 </div> |
3197 | 44 %endfor |
3707
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
45 %endif |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
46 %for tag in cs.tags: |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
47 <div class="tagtag" title="${_('Tag %s') % tag}"> |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
48 ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))} |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
49 </div> |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
50 %endfor |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
51 %if cs.branch: |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
52 <div class="branchtag" title="${_('Branch %s' % cs.branch)}"> |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
53 ${h.link_to(h.shorter(cs.branch),h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch))} |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
54 </div> |
93de03499097
shortlog: show all refs (bookmarks,tags,branches) in one dedicated column
Marcin Kuzminski <marcin@python-works.com>
parents:
3654
diff
changeset
|
55 %endif |
3197 | 56 </td> |
57 </tr> | |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
58 %endfor |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
59 |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
60 </table> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
61 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
62 <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
|
63 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
|
64 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
|
65 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
|
66 YUE.preventDefault(e); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
67 },'.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
|
68 }); |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
69 </script> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
70 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
71 <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
|
72 ${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
|
73 </div> |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
74 %else: |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
75 |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
76 %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
|
77 <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
|
78 <div style="margin: 20px 30px;"> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
79 <div id="add_node_id" class="add_node"> |
3654
ec6354949623
Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents:
3564
diff
changeset
|
80 <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
|
81 </div> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
82 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
83 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
84 |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
85 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
86 <h4>${_('Push new repo')}</h4> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
87 <pre> |
1786
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
88 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url} |
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
89 ${c.rhodecode_repo.alias} add README # add first file |
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
90 ${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
|
91 ${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
|
92 </pre> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
93 |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
94 <h4>${_('Existing repository?')}</h4> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
95 <pre> |
2659
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
96 %if h.is_git(c.rhodecode_repo): |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
97 git remote add origin ${c.clone_repo_url} |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
98 git push -u origin master |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
99 %else: |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
100 hg push ${c.clone_repo_url} |
2673
d5e42c00f3c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2659
diff
changeset
|
101 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
102 </pre> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
103 %endif |