annotate rhodecode/templates/shortlog/shortlog_data.html @ 2953:ac83f7a809a6 beta

Add compare button into quick menu
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 23 Oct 2012 14:25:00 +0200
parents 0b86972de820
children a520d542697e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
4 <tr>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1837
diff changeset
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>
799
6d37fe113da0 fixes to #85, some other small changes for summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
7 <th class="left">${_('age')}</th>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
8 <th class="left">${_('author')}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
9 <th class="left">${_('branch')}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
10 <th class="left">${_('tags')}</th>
279
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
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):
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
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]:
a16f9a76c26f #574 Show pull request status also in shortlog (if any)
Marcin Kuzminski <marcin@python-works.com>
parents: 2673
diff changeset
20 <a class="tooltip" title="${_('Click to open associated pull request')}" href="${h.url('pullrequest_show',repo_name=c.statuses.get(cs.raw_id)[3],pull_request_id=c.statuses.get(cs.raw_id)[2])}">
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>
2231
2cfaf199a5a7 Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents: 2198
diff changeset
33 ${h.link_to(h.truncate(cs.message,50) or _('No commit message'),
1959
7a7ffe24b82c optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 1938
diff changeset
34 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
7a7ffe24b82c optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 1938
diff changeset
35 title=cs.message)}
799
6d37fe113da0 fixes to #85, some other small changes for summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
36 </td>
2427
f467c75544af Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents: 2416
diff changeset
37 <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
38 ${h.age(cs.date)}</span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1837
diff changeset
39 </td>
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
40 <td title="${cs.author}">${h.person(cs.author)}</td>
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
41 <td>
280
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
42 <span class="logtags">
2231
2cfaf199a5a7 Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents: 2198
diff changeset
43 %if cs.branch:
1959
7a7ffe24b82c optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 1938
diff changeset
44 <span class="branchtag">
7a7ffe24b82c optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 1938
diff changeset
45 ${cs.branch}
7a7ffe24b82c optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents: 1938
diff changeset
46 </span>
2231
2cfaf199a5a7 Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents: 2198
diff changeset
47 %endif
280
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
48 </span>
110
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
49 </td>
279
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
50 <td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
51 <span class="logtags">
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
52 %for tag in cs.tags:
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
53 <span class="tagtag">${tag}</span>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
54 %endfor
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
55 </span>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
56 </td>
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 494
diff changeset
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">
1756
Marcin Kuzminski <marcin@python-works.com>
parents: 1736
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