[copr] master: When there are no permissions for a copr, tell it to user (d4d322d)

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


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

On branch  : master

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

commit d4d322d645fd66109628cb84ce85c2fae30ac384
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Mon Jan 21 10:20:58 2013 +0100

    When there are no permissions for a copr, tell it to user


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

 .../coprs/templates/coprs/detail/permissions.html  |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/coprs_frontend/coprs/templates/coprs/detail/permissions.html b/coprs_frontend/coprs/templates/coprs/detail/permissions.html
index 12e9d2c..3d9cb75 100644
--- a/coprs_frontend/coprs/templates/coprs/detail/permissions.html
+++ b/coprs_frontend/coprs/templates/coprs/detail/permissions.html
@@ -7,5 +7,7 @@
   {% if (g.user and g.user != copr.owner) or permissions %}
     {# the table is displayed only if there are some permissions or a non-owner is viewing the page (then display at least his applier form #}
     {{ permissions_table(permissions, current_user_permissions, copr, permissions_applier_form, permissions_form) }}
+  {% else %}
+    <h2>No permissions yet</h2>
   {% endif %}
 {% endblock %}



More information about the copr-devel mailing list