# HG changeset patch # User Marcin Kuzminski # Date 1273416702 -7200 # Node ID c29197bd290721014a86461bc66a2fc127fea5a7 # Parent b5e59e2b5cfe84998eb80efd93e977680b6be831 fixed listings, of commits, added slugs for longer commits messages diff -r b5e59e2b5cfe -r c29197bd2907 pylons_app/templates/shortlog/shortlog_data.html --- a/pylons_app/templates/shortlog/shortlog_data.html Sun May 09 15:06:00 2010 +0200 +++ b/pylons_app/templates/shortlog/shortlog_data.html Sun May 09 16:51:42 2010 +0200 @@ -3,17 +3,31 @@ from pylons_app.lib import filters %> +<%def name="message_slug(msg)"> + <% + limit = 60 + if len(msg) > limit: + return msg[:limit]+'...' + else: + return msg + %> + %for cnt,cs in enumerate(c.repo_changesets): - +
${cs._ctx.date()|n,filters.age} ${cs.author|n,filters.person}${h.link_to(cs.message,h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} - - ${cs.branch} - %for tag in cs.tags: - ${tag} - %endfor - + + ${h.link_to(message_slug(cs.message), + h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), + title=cs.message)} + + + ${cs.branch} + %for tag in cs.tags: + ${tag} + %endfor + ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} diff -r b5e59e2b5cfe -r c29197bd2907 pylons_app/templates/summary.html --- a/pylons_app/templates/summary.html Sun May 09 15:06:00 2010 +0200 +++ b/pylons_app/templates/summary.html Sun May 09 16:51:42 2010 +0200 @@ -49,13 +49,25 @@

${h.link_to(_('Changes'),h.url('changelog_home',repo_name=c.repo_name))}

+ <%def name="message_slug(msg)"> + <% + limit = 60 + if len(msg) > limit: + return msg[:limit]+'...' + else: + return msg + %> + %for cnt,cs in enumerate(c.repo_changesets): - + +
${cs._ctx.date()|n,filters.age}${cs.author}${cs.author|n,filters.person} - - ${h.link_to(cs.message,h.url('changeset_home',repo_name=c.repo_name,revision=cs._short))} + ${h.link_to(message_slug(cs.message), + h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), + title=cs.message)} + ${cs.branch} %for tag in cs.tags: