Commit ced5d517 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show ldap notice on group member page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent fc16223c
......@@ -18,7 +18,7 @@
- if current_user && current_user.can?(:manage_group, @group)
.pull-right
- if ldap_enabled? && @group.ldap_cn.present?
= link_to reset_access_group_ldap_path(@group), class: 'btn grouped', data: { confirm: "Reset the access level of all other LDAP group team members to '#{@group.human_ldap_access}'?" }, method: :put do
= link_to reset_access_group_ldap_path(@group), class: 'btn btn-grouped', data: { confirm: "Reset the access level of all other LDAP group team members to '#{@group.human_ldap_access}'?" }, method: :put do
Reset access
= link_to '#', class: 'btn btn-new js-toggle-button' do
......@@ -28,6 +28,13 @@
.js-toggle-content.hide.new-group-member-holder
= render "new_group_member"
- if ldap_enabled? && @group.ldap_cn.present?
.bs-callout.bs-callout-info
This group sync members from LDAP group with cn
%code #{@group.ldap_cn}
and give them access level
%code #{@group.human_ldap_access}
.panel.panel-default.prepend-top-20
.panel-heading
%strong #{@group.name}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment