[copr] master: Add links to delete/freeze (freeze doesn't work yet) copr in admin (3d9a60f)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Tue Apr 2 13:24:11 UTC 2013


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

On branch  : master

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

commit 3d9a60f0c42c7a55b9306d994e3acd2c9702fbaa
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Tue Apr 2 13:39:15 2013 +0200

    Add links to delete/freeze (freeze doesn't work yet) copr in admin


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

 .../coprs/templates/admin/legal-flag.html          |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/coprs_frontend/coprs/templates/admin/legal-flag.html b/coprs_frontend/coprs/templates/admin/legal-flag.html
index e683c38..f7252c2 100644
--- a/coprs_frontend/coprs/templates/admin/legal-flag.html
+++ b/coprs_frontend/coprs/templates/admin/legal-flag.html
@@ -6,9 +6,16 @@
   {% for flag in legal_flags %}
     <div class="legal-flag">
       <div>
-        <a href={{ url_for('coprs_ns.copr_detail', username=flag.copr.owner.name, coprname=flag.copr.name) }}>
-          {{ flag.copr.owner.name }}/{{ flag.copr.name }}
-        </a>
+        {% if flag.copr %}
+          <a href={{ url_for('coprs_ns.copr_detail', username=flag.copr.owner.name, coprname=flag.copr.name) }}>
+            {{ flag.copr.owner.name }}/{{ flag.copr.name }}
+          </a>
+          | <a href="">Freeze</a>
+	  | <a href="{{ url_for('coprs_ns.copr_delete', username=flag.copr.owner.name, coprname=flag.copr.name) }}">Delete</a>
+        {% else %}
+          {{ flag.old_value }} - copr was deleted
+        {% endif %}
+        | <a href="">Resolve</a>
       </div>
       <div class="message">
         {{ flag.message }}



More information about the copr-devel mailing list