Mercurial > kallithea
annotate pylons_app/templates/shortlog/shortlog_data.html @ 163:334402e97550
added revision to shortlog
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 19 May 2010 21:32:07 +0200 |
parents | c29197bd2907 |
children | dee1913f7f5a |
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> |
163
334402e97550
added revision to shortlog
Marcin Kuzminski <marcin@python-works.com>
parents:
141
diff
changeset
|
19 <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
|
20 <td> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
21 ${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
|
22 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
|
23 title=cs.message)} |
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 <td> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
26 <span class="logtags"> |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
27 <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
|
28 %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
|
29 <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
|
30 %endfor |
c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
Marcin Kuzminski <marcin@python-works.com>
parents:
127
diff
changeset
|
31 </span> |
110
ad2500720b02
added images updated htl added tags,branches display
Marcin Kuzminski <marcin@python-works.com>
parents:
105
diff
changeset
|
32 </td> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
33 <td class="nowrap"> |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
34 ${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
|
35 | |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
36 ${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
|
37 </td> |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
38 </tr> |
83
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
39 %endfor |
105
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
40 |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
41 </table> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
42 <div> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
43 <script type="text/javascript"> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
44 var data_div = 'shortlog_data'; |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
45 YAHOO.util.Event.onDOMReady(function(){ |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
46 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
|
47 YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});}); |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
48 </script> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
49 <h2> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
50 ${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
|
51 onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ |
db39d0ca5308
implemented Shortlog as seperate controller,
Marcin Kuzminski <marcin@python-blog.com>
parents:
diff
changeset
|
52 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
|
53 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
|
54 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
|
55 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
|
56 </h2> |
3ac4350b7848
Html updates and fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
84
diff
changeset
|
57 </div> |