From bde9b0fc3b1b442a1a209aabf380f137bf0e8e1b Mon Sep 17 00:00:00 2001 From: xiez Date: Fri, 21 Sep 2012 19:38:53 +0800 Subject: [PATCH] Fixed bug when unshare repo in group, and view groups in org. --- group/views.py | 2 +- .../templates/organizations/org_groups.html | 25 +------------------ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/group/views.py b/group/views.py index c1cb4165b1..c4f85c0c21 100644 --- a/group/views.py +++ b/group/views.py @@ -631,7 +631,7 @@ def group_unshare_repo(request, repo_id, group_id, from_email): return render_error(request, u'取消共享失败:小组不存在') # Check whether user belongs to the group. - joined = is_group_user(group_id_int, request.user.username) + joined = is_group_user(group_id, request.user.username) if not joined: return render_error(request, u'取消共享失败:未加入该小组') diff --git a/organizations/templates/organizations/org_groups.html b/organizations/templates/organizations/org_groups.html index 555a36e1c3..4600573c99 100644 --- a/organizations/templates/organizations/org_groups.html +++ b/organizations/templates/organizations/org_groups.html @@ -13,30 +13,7 @@ {% block right_panel %}

{{ org.org_name }} 的小组

-{% if groups %} - -{% else %} -

暂无

-{% endif %} - - -{% include "snippets/group_add_form.html" %} - +{% include "group/groups_right_panel.html" %} {% endblock %} {% block extra_script %}