Merged in kberridge/hg-review (pull request #6)
web: display branch name on index if other than 'default'
author |
Christophe de Vienne <cdevienne@gmail.com> |
date |
Fri, 21 Nov 2014 18:38:48 +0100 |
parents |
8be7ac46f0ec
(current diff)
b0bcc35b016a
(diff)
|
children |
66463ec963b6
|
branches/tags |
(none) |
files |
|
Changes
--- a/review/templates/index.html Fri Nov 21 18:35:45 2014 +0100
+++ b/review/templates/index.html Fri Nov 21 18:38:48 2014 +0100
@@ -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 %}