summary: use the same method to trim the messages as in changelog.

- fixes #4119, summary: trimmed messages can generate wrong data in summary page
This commit is contained in:
Marcin Kuzminski 2016-07-22 17:54:16 +02:00
parent 21fdb59df8
commit bf023cc1c5
2 changed files with 6 additions and 3 deletions

View file

@ -159,7 +159,7 @@
<div class="log-container truncate-wrap">
<div class="message truncate" id="c-${commit.raw_id}">${h.urlify_commit_message(commit.message, c.repo_name)}</div>
</div>
</td>
</td>
<td class="td-time">
${h.age_component(commit.date)}

View file

@ -41,8 +41,11 @@
<td class="td-commit">
<pre><a href="${h.url('changeset_home', repo_name=c.repo_name, revision=cs.raw_id)}">${h.show_id(cs)}</a></pre>
</td>
<td class="td-message">
${h.urlify_commit_message(h.truncate(cs.message, 50), c.repo_name)}
<td class="td-description mid">
<div class="log-container truncate-wrap">
<div class="message truncate" id="c-${cs.raw_id}">${h.urlify_commit_message(cs.message, c.repo_name)}</div>
</div>
</td>
<td class="td-time">