Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
83a5de4d
Commit
83a5de4d
authored
Aug 12, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
List owners on ACL management page
Issue #720 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
a242bb11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
weblate/html/project.html
weblate/html/project.html
+17
-0
weblate/trans/models/project.py
weblate/trans/models/project.py
+3
-1
No files found.
weblate/html/project.html
View file @
83a5de4d
...
...
@@ -164,6 +164,23 @@
</tr>
</thead>
<tbody>
{% for user in object.owners.all %}
<tr>
<td>
{{ user.username }}
<span
class=
"badge"
>
{% trans "Owner" %}
</span></td>
<td>
{{ user.first_name }}
</td>
<td>
{{ user.email }}
</td>
<td>
<form
action=
"{% url "
delete-user
"
project=
object.slug
%}"
method=
"post"
>
{% csrf_token %}
<input
type=
"hidden"
name=
"name"
value=
"{{ user.username }}"
/>
<button
type=
"submit"
class=
"btn btn-danger btn-xs"
>
<i
class=
"fa fa-trash"
></i>
{% trans "Remove" %}
</button>
</form>
</td>
</tr>
{% endfor %}
{% for user in object.all_users %}
<tr>
<td>
{{ user.username }}
</td>
...
...
weblate/trans/models/project.py
View file @
83a5de4d
...
...
@@ -192,7 +192,9 @@ class Project(models.Model, PercentMixin, URLMixin, PathMixin):
Returns all users having ACL on this project.
"""
group
=
Group
.
objects
.
get
(
name
=
self
.
name
)
return
group
.
user_set
.
all
()
return
group
.
user_set
.
exclude
(
id__in
=
self
.
owners
.
values_list
(
'id'
,
flat
=
True
)
)
def
add_user
(
self
,
user
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment