Mercurial > kallithea
comparison pylons_app/templates/shortlog/shortlog_data.html @ 259:dee1913f7f5a
added message short names for longer descriptions
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 06 Jun 2010 10:57:49 +0200 |
parents | 334402e97550 |
children | 6ada8c223374 |
comparison
equal
deleted
inserted
replaced
258:00892f5cf504 | 259:dee1913f7f5a |
---|---|
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> | |
15 %for cnt,cs in enumerate(c.repo_changesets): | 6 %for cnt,cs in enumerate(c.repo_changesets): |
16 <tr class="parity${cnt%2}"> | 7 <tr class="parity${cnt%2}"> |
17 <td>${cs._ctx.date()|n,filters.age}</td> | 8 <td>${cs._ctx.date()|n,filters.age}</td> |
18 <td title="${cs.author}">${cs.author|n,filters.person}</td> | 9 <td title="${cs.author}">${cs.author|n,filters.person}</td> |
19 <td>r${cs.revision}</td> | 10 <td>r${cs.revision}</td> |
20 <td> | 11 <td> |
21 ${h.link_to(message_slug(cs.message), | 12 ${h.link_to(self.message_slug(cs.message), |
22 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | 13 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), |
23 title=cs.message)} | 14 title=cs.message)} |
24 </td> | 15 </td> |
25 <td> | 16 <td> |
26 <span class="logtags"> | 17 <span class="logtags"> |