Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit f9e7f0badc86dc7fd229b9749e4e82e7db57b909
Author: Bohuslav Kabrda <bkabrda(a)redhat.com>
Date: Fri Jan 11 10:56:41 2013 +0100
Only display permissions table when needed
---------------------------------------------------------------
coprs_frontend/coprs/templates/coprs/detail.html | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/templates/coprs/detail.html
b/coprs_frontend/coprs/templates/coprs/detail.html
index 7670e6f..72db33c 100644
--- a/coprs_frontend/coprs/templates/coprs/detail.html
+++ b/coprs_frontend/coprs/templates/coprs/detail.html
@@ -22,7 +22,10 @@
</ul>
{% endif %}
<h3>Permissions</h3>
- {{ permissions_table(permissions, current_user_permissions, copr,
permissions_applier_form, permissions_form) }}
+ {% 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) }}
+ {% endif %}
{% if g.user and g.user.can_build_in(copr) %}
<h3>Build packages in this repo:</h3>
{{ copr_build_form(build_form, 'coprs_ns.copr_add_build', copr) }}