##// END OF EJS Templates
fixed listings, of commits, added slugs for longer commits messages
marcink -
r141:c29197bd default
parent child Browse files
Show More
@@ -3,17 +3,31 b''
3 3 from pylons_app.lib import filters
4 4 %>
5 5 <table>
6 <%def name="message_slug(msg)">
7 <%
8 limit = 60
9 if len(msg) > limit:
10 return msg[:limit]+'...'
11 else:
12 return msg
13 %>
14 </%def>
6 15 %for cnt,cs in enumerate(c.repo_changesets):
7 16 <tr class="parity${cnt%2}">
8 17 <td>${cs._ctx.date()|n,filters.age}</td>
9 18 <td title="${cs.author}">${cs.author|n,filters.person}</td>
10 <td>${h.link_to(cs.message,h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
11 <span class="logtags">
12 <span class="branchtag">${cs.branch}</span>
13 %for tag in cs.tags:
14 <span class="tagtag">${tag}</span>
15 %endfor
16 </span>
19 <td>
20 ${h.link_to(message_slug(cs.message),
21 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
22 title=cs.message)}
23 </td>
24 <td>
25 <span class="logtags">
26 <span class="branchtag">${cs.branch}</span>
27 %for tag in cs.tags:
28 <span class="tagtag">${tag}</span>
29 %endfor
30 </span>
17 31 </td>
18 32 <td class="nowrap">
19 33 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
@@ -49,13 +49,25 b' from pylons_app.lib import filters'
49 49
50 50 <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2>
51 51 <table>
52 <%def name="message_slug(msg)">
53 <%
54 limit = 60
55 if len(msg) > limit:
56 return msg[:limit]+'...'
57 else:
58 return msg
59 %>
60 </%def>
52 61 %for cnt,cs in enumerate(c.repo_changesets):
53 62 <tr class="parity${cnt%2}">
54 63 <td>${cs._ctx.date()|n,filters.age}</td>
55 <td>${cs.author}</td>
64 <td>${cs.author|n,filters.person}</td>
56 65 <td>
57
58 ${h.link_to(cs.message,h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))}
66 ${h.link_to(message_slug(cs.message),
67 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short),
68 title=cs.message)}
69 </td>
70 <td>
59 71 <span class="logtags">
60 72 <span class="branchtag">${cs.branch}</span>
61 73 %for tag in cs.tags:
General Comments 0
You need to be logged in to leave comments. Login now