[copr] master: Use proper template variable to check build count otherwise a new query is triggered (4393bd7)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Fri Jan 25 13:05:30 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit 4393bd70cfdb61a727a4cfbd71dc45b915c4cbfd
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Jan 25 13:44:49 2013 +0100

    Use proper template variable to check build count otherwise a new query is triggered


>---------------------------------------------------------------

 .../coprs/templates/coprs/detail/builds.html       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/coprs_frontend/coprs/templates/coprs/detail/builds.html b/coprs_frontend/coprs/templates/coprs/detail/builds.html
index 8e193af..2746554 100644
--- a/coprs_frontend/coprs/templates/coprs/detail/builds.html
+++ b/coprs_frontend/coprs/templates/coprs/detail/builds.html
@@ -5,7 +5,7 @@
 {% from "coprs/detail/_builds_table.html" import builds_table with context %}
 
 {% block detail_body %}
-  {% if copr.builds %}
+  {% if builds %}
     {{ builds_table(builds) }}
     <div class="pagination">
       {{ render_pagination(request, paginator) }}



More information about the copr-devel mailing list