Mercurial > kallithea
comparison pylons_app/templates/summary/summary.html @ 260:6ada8c223374
made global funcion to clean repo names, and remove all special chars from the name.
Switched message slug into webhelpers function
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 06 Jun 2010 21:54:54 +0200 |
parents | 7c4fa2a66195 |
children | 0e5455fda8fd |
comparison
equal
deleted
inserted
replaced
259:dee1913f7f5a | 260:6ada8c223374 |
---|---|
62 </dd> | 62 </dd> |
63 </dl> | 63 </dl> |
64 | 64 |
65 <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> | 65 <h2>${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}</h2> |
66 <table> | 66 <table> |
67 <%def name="message_slug(msg)"> | |
68 <% | |
69 limit = 60 | |
70 if len(msg) > limit: | |
71 return msg[:limit]+'...' | |
72 else: | |
73 return msg | |
74 %> | |
75 </%def> | |
76 %for cnt,cs in enumerate(c.repo_changesets): | 67 %for cnt,cs in enumerate(c.repo_changesets): |
77 <tr class="parity${cnt%2}"> | 68 <tr class="parity${cnt%2}"> |
78 <td>${cs._ctx.date()|n,filters.age}</td> | 69 <td>${cs._ctx.date()|n,filters.age}</td> |
79 <td>${cs.author|n,filters.person}</td> | 70 <td>${cs.author|n,filters.person}</td> |
80 <td>r${cs.revision}</td> | 71 <td>r${cs.revision}</td> |
81 <td> | 72 <td> |
82 ${h.link_to(message_slug(cs.message), | 73 ${h.link_to(truncate(cs.message,60), |
83 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | 74 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), |
84 title=cs.message)} | 75 title=cs.message)} |
85 </td> | 76 </td> |
86 <td> | 77 <td> |
87 <span class="logtags"> | 78 <span class="logtags"> |