Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 6cb0f5435fa6f664c900b731f5a7d9c42aa3fb7c
Author: Bohuslav Kabrda <bkabrda(a)redhat.com>
Date: Mon Jan 21 11:52:59 2013 +0100
Some cosmetic changes to permissions table
---------------------------------------------------------------
.../templates/coprs/detail/_permissions_table.html | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/coprs_frontend/coprs/templates/coprs/detail/_permissions_table.html
b/coprs_frontend/coprs/templates/coprs/detail/_permissions_table.html
index a8675ec..d8ded5d 100644
--- a/coprs_frontend/coprs/templates/coprs/detail/_permissions_table.html
+++ b/coprs_frontend/coprs/templates/coprs/detail/_permissions_table.html
@@ -1,14 +1,14 @@
{% macro permissions_table(permissions, current_user_permissions, copr,
permissions_applier_form, permissions_form) %}
{% if permissions or g.user != copr.owner %} {# display the whole table if there are
permissions or user can ask for them #}
{% if permissions_applier_form and g.user %}
- <form action="{{
url_for('coprs_ns.copr_permissions_applier_change', username = copr.owner.name,
coprname = copr.name)}}" method=post>
+ <form action="{{
url_for('coprs_ns.copr_permissions_applier_change', username=copr.owner.name,
coprname=copr.name)}}" method=post>
{{ permissions_applier_form.csrf_token }}
{% endif %}
{% if permissions_form and g.user %}
- <form action="{{ url_for('coprs_ns.copr_update_permissions',
username = copr.owner.name, coprname = copr.name)}}" method=post>
+ <form action="{{ url_for('coprs_ns.copr_update_permissions',
username=copr.owner.name, coprname=copr.name)}}" method=post>
{{ permissions_form.csrf_token }}
{% endif %}
- <table class=permissions-table>
+ <table class="permissions-table">
<tr><th>Username</th><th>Is Builder</th><th>Is
Admin</th></tr>
{% for perm in permissions %}
{% if perm.user_id != g.user.id %} {# if user is logged in, only display his form
below, not a row #}
@@ -18,7 +18,7 @@
{{ permissions_table_row_current_user(current_user_permissions,
permissions_applier_form, permissions_form) }}
</table>
{% if g.user and (permissions_applier_form or permissions_form) %} {# TODO: when to
display? #}
- <input type=submit value=Submit>
+ <input type="submit" value="Update">
</form>
{% endif %}
{% else %}