Mercurial > kallithea
annotate rhodecode/templates/shortlog/shortlog_data.html @ 2822:1670ee0aded7 beta
fixed issue #559 fixed bug in routing that mapped repo names with <name>_<num> in name as
if it was a request to url by repository ID
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Sep 2012 18:00:31 +0200 |
parents | d5e42c00f3c1 |
children | a16f9a76c26f |
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> |
1837
a6a30c919513
#73 mapping of commited issues from commit message into issue tracker url.
Marcin Kuzminski <marcin@python-works.com>
parents:
1786
diff
changeset
|
15 <div><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></div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
16 </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
|
17 <td> |
2231
2cfaf199a5a7
Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents:
2198
diff
changeset
|
18 ${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
|
19 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
|
20 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
|
21 </td> |
2427
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
2416
diff
changeset
|
22 <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
|
23 ${h.age(cs.date)}</span> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
24 </td> |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
25 <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
|
26 <td> |
280
373ddb868bd6
html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents:
279
diff
changeset
|
27 <span class="logtags"> |
2231
2cfaf199a5a7
Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents:
2198
diff
changeset
|
28 %if cs.branch: |
1959
7a7ffe24b82c
optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents:
1938
diff
changeset
|
29 <span class="branchtag"> |
7a7ffe24b82c
optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents:
1938
diff
changeset
|
30 ${cs.branch} |
7a7ffe24b82c
optimized speed for browsing git changesets
Marcin Kuzminski <marcin@python-works.com>
parents:
1938
diff
changeset
|
31 </span> |
2231
2cfaf199a5a7
Fixed empty git commit message issue
Marcin Kuzminski <marcin@python-works.com>
parents:
2198
diff
changeset
|
32 %endif |
280
373ddb868bd6
html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents:
279
diff
changeset
|
33 </span> |
110
ad2500720b02
added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents:
105
diff
changeset
|
34 </td> |
279
ba0523f440d2
#2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents:
277
diff
changeset
|
35 <td> |
ba0523f440d2
#2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents:
277
diff
changeset
|
36 <span class="logtags"> |
ba0523f440d2
#2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents:
277
diff
changeset
|
37 %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
|
38 <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
|
39 %endfor |
ba0523f440d2
#2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents:
277
diff
changeset
|
40 </span> |
ba0523f440d2
#2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents:
277
diff
changeset
|
41 </td> |
509
b50e79b4257a
fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents:
494
diff
changeset
|
42 </tr> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
43 %endfor |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
44 |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
45 </table> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
46 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
47 <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
|
48 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
|
49 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
|
50 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
|
51 YUE.preventDefault(e); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
52 },'.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
|
53 }); |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
54 </script> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
55 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
56 <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
|
57 ${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
|
58 </div> |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
280
diff
changeset
|
59 %else: |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
60 |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
61 %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
|
62 <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
|
63 <div style="margin: 20px 30px;"> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
64 <div id="add_node_id" class="add_node"> |
1756 | 65 <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
|
66 </div> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
67 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
282
diff
changeset
|
68 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
69 |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
70 |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
71 <h4>${_('Push new repo')}</h4> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
72 <pre> |
1786
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
73 ${c.rhodecode_repo.alias} clone ${c.clone_repo_url} |
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
74 ${c.rhodecode_repo.alias} add README # add first file |
02a26ed03537
fixed instructions for git
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
75 ${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
|
76 ${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
|
77 </pre> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
78 |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
79 <h4>${_('Existing repository?')}</h4> |
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
80 <pre> |
2659
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
81 %if h.is_git(c.rhodecode_repo): |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
82 git remote add origin ${c.clone_repo_url} |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
83 git push -u origin master |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
84 %else: |
2e0a39df8934
better instructions for git start
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
85 hg push ${c.clone_repo_url} |
2673
d5e42c00f3c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
2659
diff
changeset
|
86 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1837
diff
changeset
|
87 </pre> |
1736
e2d76554d2c6
added quickstart page for new repos
Marcin Kuzminski <marcin@python-works.com>
parents:
1706
diff
changeset
|
88 %endif |