Rendering changes

This commit is contained in:
Oliver Walters 2019-05-02 21:28:47 +10:00
parent a0ad95ab28
commit 1295390b03
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{% extends "collapse.html" %}
{% block collapse_title %}
{{ title }}<span class='badge'>{{ builds | length }}</span>
<b>{{ title }}</b> - {{ builds | length }}
{% endblock %}
{% block collapse_content %}

View File

@ -35,7 +35,7 @@ class BuildIndex(ListView):
context['active'] = self.get_queryset().filter(status__in=[Build.PENDING,])
context['complete'] = self.get_queryset().filter(status=Build.COMPLETE)
context['completed'] = self.get_queryset().filter(status=Build.COMPLETE)
context['cancelled'] = self.get_queryset().filter(status=Build.CANCELLED)
return context