annotate rhodecode/templates/shortlog/shortlog_data.html @ 995:d14723711d17 beta

fixes for journal, added paging now it's possible to view whole journal fixed tooltip events for shortlog and journal paging. Moved journal to it's own templates
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 04 Feb 2011 17:36:41 +0100
parents 82aaf4e71817
children c6b811f11c94
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">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
49 var data_div = 'shortlog_data';
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
50 YAHOO.util.Event.onDOMReady(function(){
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
51 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
995
d14723711d17 fixes for journal, added paging now it's possible to view whole journal
Marcin Kuzminski <marcin@python-works.com>
parents: 904
diff changeset
52 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});});
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
53 </script>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
54
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
55 <div class="pagination-wh pagination-left">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
56 ${c.repo_changesets.pager('$link_previous ~2~ $link_next',
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
57 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
58 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText;
995
d14723711d17 fixes for journal, added paging now it's possible to view whole journal
Marcin Kuzminski <marcin@python-works.com>
parents: 904
diff changeset
59 tooltip_activate();
d14723711d17 fixes for journal, added paging now it's possible to view whole journal
Marcin Kuzminski <marcin@python-works.com>
parents: 904
diff changeset
60 YUE.on(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
61 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
62 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
63 </div>
282
237470e64bb8 switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents: 280
diff changeset
64 %else:
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 494
diff changeset
65 ${_('There are no changes yet')}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 282
diff changeset
66 %endif