Use the project in the template context rather than ajax request to get the number of ended builds.
Signed-off-by: Michael Wood <[email protected]> --- bitbake/lib/toaster/toastergui/templates/projecttopbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/toaster/toastergui/templates/projecttopbar.html b/bitbake/lib/toaster/toastergui/templates/projecttopbar.html index ee86b54..d8f7cbd 100644 --- a/bitbake/lib/toaster/toastergui/templates/projecttopbar.html +++ b/bitbake/lib/toaster/toastergui/templates/projecttopbar.html @@ -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"> -- 2.5.0 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
