]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: projecttopbar Use the project in context to get num builds
authorMichael Wood <michael.g.wood@intel.com>
Fri, 13 Nov 2015 13:48:36 +0000 (13:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 Nov 2015 11:43:38 +0000 (11:43 +0000)
Use the project in the template context rather than ajax request to get
the number of ended builds.

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>
lib/toaster/toastergui/templates/projecttopbar.html

index ee86b5481d25c08c22c8208bc71dca937d209c31..d8f7cbdbe85f6a66a8b6ac67e004d5dfc4749194 100644 (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">