Skip to content

Commit

Permalink
toaster: projecttopbar Use the project in context to get num builds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Wood authored and rpurdie committed Nov 16, 2015
1 parent 872bd5c commit 1f6bfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/toaster/toastergui/templates/projecttopbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 id="project-name-container">
<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">
Expand Down

0 comments on commit 1f6bfa8

Please sign in to comment.