Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 137591dff3d5d36f393a3aeb1a8ebd9486c7244b
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Fri May 29 22:31:13 2015 +0200
[frontend] fix regression: show again additional buildroot packages for modified
chroots at overview page
---------------------------------------------------------------
frontend/coprs_frontend/coprs/models.py | 4 ++++
.../coprs/templates/coprs/detail/overview.html | 9 ++++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/models.py
b/frontend/coprs_frontend/coprs/models.py
index a4317a8..2b77b8e 100644
--- a/frontend/coprs_frontend/coprs/models.py
+++ b/frontend/coprs_frontend/coprs/models.py
@@ -231,6 +231,10 @@ class Copr(db.Model, helpers.Serializer):
modified_chroots.append(chroot)
return modified_chroots
+ def is_release_arch_modified(self, name_release, arch):
+ if "{}-{}".format(name_release, arch) in [chroot.name for chroot in
self.modified_chroots]:
+ return True
+ return False
class CoprPermission(db.Model, helpers.Serializer):
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html
b/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html
index e108870..7c22359 100644
--- a/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html
+++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/overview.html
@@ -52,7 +52,14 @@
{{ repo.name_release_human|capitalize }}
</td>
<td>
- {{ repo.arch_list|join(", ") }}
+ {% for arch in repo.arch_list %}
+ {{ arch }}
+ {% if copr.is_release_arch_modified(repo.name_release, arch) %}
+ <a
id="modified-chroot-{{repo.name_release}}-{{arch}}">[modified]</a>
+ {% endif %}
+ <br />
+ {% endfor %}
+
</td>
<!-- <td>
<center> {{ repo.dl_stat }} </center> <br />