decode revision descriptions in templates (fixes #79)
author |
Mikhail Lukyanchenko <ml@uptimebox.ru> |
date |
Mon, 19 Dec 2011 13:07:35 +0400 |
parents |
78819a1b530e
|
children |
73d048325dfd
|
branches/tags |
(none) |
files |
review/templates/changeset.html review/templates/index.html |
Changes
--- a/review/templates/changeset.html Mon Jul 18 13:34:36 2011 -0400
+++ b/review/templates/changeset.html Mon Dec 19 13:07:35 2011 +0400
@@ -29,12 +29,12 @@
<h2>
{{ rev.rev() }}:
- <span class="desc">{{ rev.description().splitlines()[0] }}</span>
+ <span class="desc">{{ utils['decode'](rev.description().splitlines()[0]) }}</span>
<span class="by">by</span>
<a href="mailto:{{ utils['email'](rev.user()) }}">{{ utils['person'](rev.user()) }}</a>
</h2>
- <div class="fulldesc">{{ rev.description() }}</div>
+ <div class="fulldesc">{{ utils['decode'](rev.description()) }}</div>
</div>
{% with %}
--- a/review/templates/index.html Mon Jul 18 13:34:36 2011 -0400
+++ b/review/templates/index.html Mon Dec 19 13:07:35 2011 +0400
@@ -14,7 +14,7 @@
<tr>
<td class="node"><span class="rev">{{ rev.rev() }}</span><span class="sep">:</span><span class="hash">{{ node_short }}</span></td>
<td class="desc">
- <a class="changeset-link" href="{{ link }}">{{ rev.description().splitlines()[0] }}</a>
+ <a class="changeset-link" href="{{ link }}">{{ utils['decode'](rev.description().splitlines()[0]) }}</a>
</td>
<td class="stats">
{% with %}