changeset 4834:15cb8156b10d

repository 'latest changes': only show first line of commit message Instead of truncating the commit message at a fixed number of characters, behave like standard version control commands (e.g. hg log) and only show the first line of the commit message in an overview.
author Thomas De Schampheleire <thomas.de_schampheleire@alcatel-lucent.com>
date Mon, 09 Feb 2015 22:20:38 +0100
parents 9488ba27f754
children 468073f2ebd6
files kallithea/templates/changelog/changelog_summary_data.html
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/changelog/changelog_summary_data.html	Mon Feb 09 22:20:28 2015 +0100
+++ b/kallithea/templates/changelog/changelog_summary_data.html	Mon Feb 09 22:20:38 2015 +0100
@@ -38,7 +38,7 @@
          </div>
         </td>
         <td>
-            ${h.urlify_commit(h.truncate(cs.message,50),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
+            ${h.urlify_commit(h.chop_at(cs.message,'\n'),c.repo_name, h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}
         </td>
         <td><span class="tooltip" title="${h.tooltip(h.fmt_date(cs.date))}">
                       ${h.age(cs.date)}</span>