Mercurial > kallithea
annotate pylons_app/templates/shortlog/shortlog_data.html @ 161:9936a1d359e0
fixed pages naves html errors
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 19 May 2010 00:20:18 +0200 |
parents | c29197bd2907 |
children | 334402e97550 |
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> |
141
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
6 <%def name="message_slug(msg)"> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
7 <% |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
8 limit = 60 |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
9 if len(msg) > limit: |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
10 return msg[:limit]+'...' |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
11 else: |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
12 return msg |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
13 %> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
14 </%def> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
15 %for cnt,cs in enumerate(c.repo_changesets): |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
16 <tr class="parity${cnt%2}"> |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
17 <td>${cs._ctx.date()|n,filters.age}</td> |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
18 <td title="${cs.author}">${cs.author|n,filters.person}</td> |
141
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
19 <td> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
20 ${h.link_to(message_slug(cs.message), |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
21 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
|
22 title=cs.message)} |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
23 </td> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
24 <td> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
25 <span class="logtags"> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
26 <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
|
27 %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
|
28 <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
|
29 %endfor |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
30 </span> |
110
ad2500720b02
added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents:
105
diff
changeset
|
31 </td> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
32 <td class="nowrap"> |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
33 ${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
|
34 | |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
35 ${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
|
36 </td> |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
37 </tr> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
38 %endfor |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
39 |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
40 </table> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
41 <div> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
42 <script type="text/javascript"> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
43 var data_div = 'shortlog_data'; |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
44 YAHOO.util.Event.onDOMReady(function(){ |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
45 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
|
46 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});}); |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
47 </script> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
48 <h2> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
49 ${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
|
50 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
51 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
|
52 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
|
53 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
|
54 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
|
55 </h2> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
56 </div> |