bitbake: toaster: projecttopbar Use the project in context to get num builds

Use the project in the template context rather than ajax request to get
the number of ended builds.

(Bitbake rev: 1f6bfa876b17a600fc83c789af8aaa2639a463b2)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood 2015-11-13 13:48:36 +00:00 committed by Richard Purdie
parent e9d4962a0c
commit 55f44943d7
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
<ul class="nav nav-pills">
<li>
<a href="{% url 'projectbuilds' project.id %}">
Builds (<span class="total-builds">0</span>)
Builds ({{project.get_number_of_builds}})
</a>
</li>
<li id="topbar-configuration-tab">