web: display branch name on index if other than 'default'
author |
Kevin Berridge <kberridge@pointeblank.net> |
date |
Tue, 04 Sep 2012 13:03:55 -0400 |
parents |
638009474a3b
|
children |
87fcb432d230
|
branches/tags |
(none) |
files |
review/templates/index.html |
Changes
--- a/review/templates/index.html Mon Jan 23 15:01:27 2012 +0100
+++ b/review/templates/index.html Tue Sep 04 13:03:55 2012 -0400
@@ -14,7 +14,12 @@
<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 }}">
+ {% if rev.branch() != 'default' %}
+ [{{ rev.branch() }}]
+ {%endif%}
+ {{ rev.description().splitlines()[0] }}
+ </a>
</td>
<td class="stats">
{% with %}