Mercurial > kallithea
comparison pylons_app/templates/shortlog/shortlog_data.html @ 141:c29197bd2907
fixed listings, of commits, added slugs for longer commits messages
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 09 May 2010 16:51:42 +0200 |
parents | 20dc7a5eb748 |
children | 334402e97550 |
comparison
equal
deleted
inserted
replaced
140:b5e59e2b5cfe | 141:c29197bd2907 |
---|---|
1 ## -*- coding: utf-8 -*- | 1 ## -*- coding: utf-8 -*- |
2 <%! | 2 <%! |
3 from pylons_app.lib import filters | 3 from pylons_app.lib import filters |
4 %> | 4 %> |
5 <table> | 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 %for cnt,cs in enumerate(c.repo_changesets): | 15 %for cnt,cs in enumerate(c.repo_changesets): |
7 <tr class="parity${cnt%2}"> | 16 <tr class="parity${cnt%2}"> |
8 <td>${cs._ctx.date()|n,filters.age}</td> | 17 <td>${cs._ctx.date()|n,filters.age}</td> |
9 <td title="${cs.author}">${cs.author|n,filters.person}</td> | 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))} | 19 <td> |
11 <span class="logtags"> | 20 ${h.link_to(message_slug(cs.message), |
12 <span class="branchtag">${cs.branch}</span> | 21 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), |
13 %for tag in cs.tags: | 22 title=cs.message)} |
14 <span class="tagtag">${tag}</span> | 23 </td> |
15 %endfor | 24 <td> |
16 </span> | 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 </td> | 31 </td> |
18 <td class="nowrap"> | 32 <td class="nowrap"> |
19 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} | 33 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} |
20 | | 34 | |
21 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))} | 35 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=cs._short))} |