[copr] master: Refactor the detail templates (3cc766d)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Fri Jan 18 15:06:38 UTC 2013


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

On branch  : master

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

commit 3cc766d7ddd7d7328a872d13a9e503074bd9585c
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Jan 18 16:02:46 2013 +0100

    Refactor the detail templates


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

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

diff --git a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
index 4256bdc..4d6341a 100644
--- a/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
+++ b/coprs_frontend/coprs/templates/coprs/_coprs_forms.html
@@ -59,28 +59,3 @@
     </form>
   {% endif %}
 {% endmacro %}
-
-{% macro copr_build_form(form, view, copr) %}
-    <form action="{{ url_for(view, username = copr.owner.name, coprname = copr.name) }}" method=post class=add-entry>
-      <dl>
-        {{ form.csrf_token }}
-        {{ render_field(form.pkgs, rows = 10, cols = 50) }}
-        {% if g.user.proven %}
-          {{ render_field(form.memory_reqs) }}
-          {{ render_field(form.timeout) }}
-          {% else %} {# once we pass the hidden attribute, the field will just be hidden, it seems #}
-          {{ render_field(form.memory_reqs, hidden = True) }}
-          {{ render_field(form.timeout, hidden = True) }}
-        {% endif %}
-        <dd><input type=submit value=Submit></dd>
-      </dl>
-    </form>
-{% endmacro %}
-
-{% macro copr_build_cancel_form(build) %}
-  {% if build.cancelable %}
-    <form action="{{ url_for('coprs_ns.copr_cancel_build', username = build.copr.owner.name, coprname = build.copr.name, build_id = build.id)}}" method=post>
-      <input type=submit value=Cancel>
-    </form>
-  {% endif %}
-{% endmacro %}



More information about the copr-devel mailing list