[copr] master: Display the distro name properly even if there is only one distro chosen (fe1200e)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Mon Jan 21 11:12:49 UTC 2013


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

On branch  : master

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

commit fe1200e90d3c953b90cab77f7509964b5d36fd7a
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Jan 21 08:26:52 2013 +0100

    Display the distro name properly even if there is only one distro chosen


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

 .../coprs/templates/coprs/detail/overview.html     |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/coprs_frontend/coprs/templates/coprs/detail/overview.html b/coprs_frontend/coprs/templates/coprs/detail/overview.html
index 82cb8d5..455d314 100644
--- a/coprs_frontend/coprs/templates/coprs/detail/overview.html
+++ b/coprs_frontend/coprs/templates/coprs/detail/overview.html
@@ -23,7 +23,9 @@
         <tr class="release-end">
       {% endif %}
         {% if mock_chroot.os_release != copr.mock_chroots[loop.index0 - 1].os_release or
-            mock_chroot.os_version != copr.mock_chroots[loop.index0 - 1].os_version %}
+	      mock_chroot.os_version != copr.mock_chroots[loop.index0 - 1].os_version or
+	      loop.index0 == 0 %}
+          {# previous os_release-os_version were different or this is the first one #}
           <td>{{ mock_chroot.os_release|capitalize }} {{ mock_chroot.os_version }}</td>
         {% else %}
           <td></td>



More information about the copr-devel mailing list