diff --git a/seahub/templates/js/sysadmin-templates.html b/seahub/templates/js/sysadmin-templates.html
index 687e26b128..c3f4694e4e 100644
--- a/seahub/templates/js/sysadmin-templates.html
+++ b/seahub/templates/js/sysadmin-templates.html
@@ -453,10 +453,10 @@
<%= file_count %> / <%= size_formatted %> |
<%= id %> |
- <% if (owner && owner.indexOf('@seafile_group') == -1) { %>
+ <% if (owner.indexOf('@seafile_group') == -1) { %>
<%- owner %>
<% } else { %>
- --
+ <%- group_name %>
<% } %>
|
@@ -531,7 +531,7 @@
<% if (owner.indexOf('@seafile_group') == -1) { %>
<%- owner %>
<% } else { %>
- --
+ <%- group_name %>
<% } %>
|
|
diff --git a/seahub/templates/js/templates.html b/seahub/templates/js/templates.html
index 1d50e82ec2..974c2ac5dc 100644
--- a/seahub/templates/js/templates.html
+++ b/seahub/templates/js/templates.html
@@ -259,10 +259,11 @@
<% } %>
<% if (is_staff || is_repo_owner || is_admin) { %>
-
+
<% } %>
- <% } else { %>
+ <% } else { %> {# It is an address book group #}
<% if (is_staff) { %>
+ <% if (owner == group_id + '@seafile_group') { %> {# this repo belongs to the current group #}
+ <% } else { %>
+
+ <% } %>
<% } %>
<% } %>
<% } else { %>
@@ -1828,15 +1832,6 @@
{% trans "Owner" %} |
-