annotate pylons_app/templates/shortlog/shortlog_data.html @ 259:dee1913f7f5a

added message short names for longer descriptions
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 06 Jun 2010 10:57:49 +0200
parents 334402e97550
children 6ada8c223374
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 -*-
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
2 <%!
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
3 from pylons_app.lib import filters
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
4 %>
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
5 <table>
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
6 %for cnt,cs in enumerate(c.repo_changesets):
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
7 <tr class="parity${cnt%2}">
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
8 <td>${cs._ctx.date()|n,filters.age}</td>
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
9 <td title="${cs.author}">${cs.author|n,filters.person}</td>
163
334402e97550 added revision to shortlog
Marcin Kuzminski <marcin@python-works.com>
parents: 141
diff changeset
10 <td>r${cs.revision}</td>
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
11 <td>
259
dee1913f7f5a added message short names for longer descriptions
Marcin Kuzminski <marcin@python-works.com>
parents: 163
diff changeset
12 ${h.link_to(self.message_slug(cs.message),
141
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
13 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
14 title=cs.message)}
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
15 </td>
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
16 <td>
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
17 <span class="logtags">
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
18 <span class="branchtag">${cs.branch}</span>
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
19 %for tag in cs.tags:
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
20 <span class="tagtag">${tag}</span>
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
21 %endfor
c29197bd2907 fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents: 127
diff changeset
22 </span>
110
ad2500720b02 added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents: 105
diff changeset
23 </td>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
24 <td class="nowrap">
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
25 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
26 |
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
27 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))}
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
28 </td>
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
29 </tr>
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
30 %endfor
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
31
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
32 </table>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
33 <div>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
34 <script type="text/javascript">
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
35 var data_div = 'shortlog_data';
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
36 YAHOO.util.Event.onDOMReady(function(){
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
37 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
38 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});});
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
39 </script>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
40 <h2>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
41 ${c.repo_changesets.pager('$link_previous ~2~ $link_next',
83
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
42 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
43 success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText;
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
44 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){
db39d0ca5308 implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff changeset
45 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');});
105
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
46 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")}
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
47 </h2>
3ac4350b7848 Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 84
diff changeset
48 </div>