From fec68cedac356a18b14bac5e25b076cf3093f025 Mon Sep 17 00:00:00 2001 From: Jan-Willem van der Meer Date: Thu, 14 Aug 2014 18:03:30 +0200 Subject: [PATCH] Support multiple LDAP groups on group members page --- app/views/groups/members.html.haml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/app/views/groups/members.html.haml b/app/views/groups/members.html.haml index d00397c26a..c69e05dc48 100644 --- a/app/views/groups/members.html.haml +++ b/app/views/groups/members.html.haml @@ -28,14 +28,24 @@ .js-toggle-content.hide.new-group-member-holder = render "new_group_member" -- if ldap_enabled? && @group.ldap_cn.present? +- if ldap_enabled? && @group.ldap_group_links.any? .bs-callout.bs-callout-info - The members of this group are synced with the LDAP group with cn + The members of this group are sync with LDAP. + %ul + - @group.ldap_group_links.each do |ldap_group_link| + %li + People in cn + %code= ldap_group_link.cn + are given + %code= ldap_group_link.human_access + access. + -# + The members of this group are synced with the LDAP group with cn %code #{@group.ldap_cn} - \. They are given + \. They are given %code #{@group.human_ldap_access} access. - + .panel.panel-default.prepend-top-20 .panel-heading %strong #{@group.name}