annotate rhodecode/templates/shortlog/shortlog_data.html @ 1421:c6b811f11c94 beta

Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 09 Jul 2011 20:07:59 +0200
parents d14723711d17
children 833f9dec0a06
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 -*-
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
2 % if c.repo_changesets:
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
3 <table>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
4 <tr>
636
ffd07396d315 Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents: 635
diff changeset
5 <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
6 <th class="left">${_('age')}</th>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
7 <th class="left">${_('author')}</th>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
8 <th class="left">${_('revision')}</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>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
11 <th class="left">${_('links')}</th>
279
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
12
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
13 </tr>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
14 %for cnt,cs in enumerate(c.repo_changesets):
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
15 <tr class="parity${cnt%2}">
636
ffd07396d315 Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents: 635
diff changeset
16 <td>
826
9205fa080554 fixed shortlog for new narrower gui.
Marcin Kuzminski <marcin@python-works.com>
parents: 799
diff changeset
17 ${h.link_to(h.truncate(cs.message,50),
636
ffd07396d315 Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents: 635
diff changeset
18 h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id),
ffd07396d315 Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents: 635
diff changeset
19 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
20 </td>
904
82aaf4e71817 reimplemented tooltip, refactored tooltip_title into title for proper html,
Marcin Kuzminski <marcin@python-works.com>
parents: 826
diff changeset
21 <td><span class="tooltip" title="${cs.date}">
799
6d37fe113da0 fixes to #85, some other small changes for summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
22 ${h.age(cs.date)}</span>
6d37fe113da0 fixes to #85, some other small changes for summary page
Marcin Kuzminski <marcin@python-works.com>
parents: 636
diff changeset
23 </td>
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
24 <td title="${cs.author}">${h.person(cs.author)}</td>
636
ffd07396d315 Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents: 635
diff changeset
25 <td>r${cs.revision}:${h.short_id(cs.raw_id)}</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">
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
28 <span class="branchtag">${cs.branch}</span>
373ddb868bd6 html updates,mostly tables
Marcin Kuzminski <marcin@python-works.com>
parents: 279
diff changeset
29 </span>
110
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
30 </td>
279
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
31 <td>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
32 <span class="logtags">
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
33 %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
34 <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
35 %endfor
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
36 </span>
ba0523f440d2 #2: proposed changes to shortlog added header table description
Marcin Kuzminski <marcin@python-works.com>
parents: 277
diff changeset
37 </td>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
38 <td class="nowrap">
636
ffd07396d315 Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents: 635
diff changeset
39 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
40 |
636
ffd07396d315 Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents: 635
diff changeset
41 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
42 </td>
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 494
diff changeset
43 </tr>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
44 %endfor
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
45
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
46 </table>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
47
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
48 <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
49 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
50 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
51 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
52 YUE.preventDefault(e);
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 },'.pager_link');
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
54 });
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
55 </script>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
56
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
57 <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
58 ${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
59 </div>
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
60 %else:
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 494
diff changeset
61 ${_('There are no changes yet')}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
62 %endif