aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-06 18:30:00 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-06 18:31:02 +0000
commit4be747582f936ee4a06a5c6447d3fc1ef7d48534 (patch)
tree2fdc47594da75698f771c96942a6a85c20a1761e /templates
parent94ff843006fede275148a545e7011f21bf6c73cb (diff)
downloadopenembedded-core-contrib-4be747582f936ee4a06a5c6447d3fc1ef7d48534.tar.gz
Add a short description for branches to show in drop-down
Allows you to add e.g. "old stable" next to the denzil branch for clarification. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/templates/base.html b/templates/base.html
index 158633899e..bd6ed47902 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -39,11 +39,14 @@
</a>
<ul class="dropdown-menu">
{% for branch in all_branches %}
- {% if branch.name = current_branch %}
- <li><a href="{% url switch_branch branch.name %}"><b>{{ branch.name }}</b></a></li>
- {% else %}
- <li><a href="{% url switch_branch branch.name %}">{{ branch.name }}</a></li>
- {% endif %}
+ <li><a href="{% url switch_branch branch.name %}">
+ {% if branch.name = current_branch %}<b>{% endif %}
+ {{ branch.name }}
+ {% if branch.short_description %}
+ ({{ branch.short_description }})
+ {% endif %}
+ {% if branch.name = current_branch %}</b>{% endif %}
+ </a></li>
{% endfor %}
</ul>
</li>