Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 4393bd70cfdb61a727a4cfbd71dc45b915c4cbfd
Author: Bohuslav Kabrda <bkabrda(a)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) }}