aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layerindex/models.py1
-rw-r--r--templates/base.html13
2 files changed, 9 insertions, 5 deletions
diff --git a/layerindex/models.py b/layerindex/models.py
index aaa79bcece..b581d8dd38 100644
--- a/layerindex/models.py
+++ b/layerindex/models.py
@@ -14,6 +14,7 @@ import re
class Branch(models.Model):
name = models.CharField(max_length=50)
bitbake_branch = models.CharField(max_length=50)
+ short_description = models.CharField(max_length=50, blank=True)
class Meta:
verbose_name_plural = "Branches"
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>