[copr] master: Only display initial packages textarea on copr creation (19adab0)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Fri Dec 21 16:26:37 UTC 2012


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

On branch  : master

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

commit 19adab0d567c68ca9c1880fb6ad1852e8fa3a786
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Dec 21 17:26:21 2012 +0100

    Only display initial packages textarea on copr creation


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

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

diff --git a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
index 5f3baa4..e29060f 100644
--- a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
+++ b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
@@ -10,7 +10,9 @@
       {{ render_field(form.release) }}
       {{ render_field(form.arches, size = 2) }}
       {{ render_field(form.repos, rows = 10, cols = 50) }}
-      {{ render_field(form.initial_pkgs, rows = 10, cols = 50) }}
+      {% if copr is none %}{# we're creating the copr, so display initial builds area #}
+        {{ render_field(form.initial_pkgs, rows = 10, cols = 50) }}
+      {% endif %}
       <dd><input type=submit value=Submit></dd>
     </dl>
   </form>



More information about the copr-devel mailing list