Show More
@@ -1,56 +1,57 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%! |
|
3 | 3 | from pylons_app.lib import filters |
|
4 | 4 | %> |
|
5 | 5 | <table> |
|
6 | 6 | <%def name="message_slug(msg)"> |
|
7 | 7 | <% |
|
8 | 8 | limit = 60 |
|
9 | 9 | if len(msg) > limit: |
|
10 | 10 | return msg[:limit]+'...' |
|
11 | 11 | else: |
|
12 | 12 | return msg |
|
13 | 13 | %> |
|
14 | 14 | </%def> |
|
15 | 15 | %for cnt,cs in enumerate(c.repo_changesets): |
|
16 | 16 | <tr class="parity${cnt%2}"> |
|
17 | 17 | <td>${cs._ctx.date()|n,filters.age}</td> |
|
18 | 18 | <td title="${cs.author}">${cs.author|n,filters.person}</td> |
|
19 | <td>r${cs.revision}</td> | |
|
19 | 20 | <td> |
|
20 | 21 | ${h.link_to(message_slug(cs.message), |
|
21 | 22 | h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), |
|
22 | 23 | title=cs.message)} |
|
23 | 24 | </td> |
|
24 | 25 | <td> |
|
25 | 26 | <span class="logtags"> |
|
26 | 27 | <span class="branchtag">${cs.branch}</span> |
|
27 | 28 | %for tag in cs.tags: |
|
28 | 29 | <span class="tagtag">${tag}</span> |
|
29 | 30 | %endfor |
|
30 | 31 | </span> |
|
31 | 32 | </td> |
|
32 | 33 | <td class="nowrap"> |
|
33 | 34 | ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} |
|
34 | 35 | | |
|
35 | 36 | ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))} |
|
36 | 37 | </td> |
|
37 | 38 | </tr> |
|
38 | 39 | %endfor |
|
39 | 40 | |
|
40 | 41 | </table> |
|
41 | 42 | <div> |
|
42 | 43 | <script type="text/javascript"> |
|
43 | 44 | var data_div = 'shortlog_data'; |
|
44 | 45 | YAHOO.util.Event.onDOMReady(function(){ |
|
45 | 46 | YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
|
46 | 47 | YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});}); |
|
47 | 48 | </script> |
|
48 | 49 | <h2> |
|
49 | 50 | ${c.repo_changesets.pager('$link_previous ~2~ $link_next', |
|
50 | 51 | onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ |
|
51 | 52 | success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; |
|
52 | 53 | YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
|
53 | 54 | YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); |
|
54 | 55 | YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} |
|
55 | 56 | </h2> |
|
56 | 57 | </div> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now