Commit cb5c3625 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'gropu-ldap-info' into 'master'

Show ldap sync info on group pages

Fixes #141

See merge request !142
parents 005c421f 471e183f
...@@ -31,6 +31,17 @@ ...@@ -31,6 +31,17 @@
%strong %strong
= @group.created_at.stamp("March 1, 1999") = @group.created_at.stamp("March 1, 1999")
- if @group.ldap_cn.present?
%li
%span.light LDAP group cn:
%strong
= @group.ldap_cn
%li
%span.light LDAP access level:
%strong
= @group.human_ldap_access
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
%h3.panel-title %h3.panel-title
...@@ -50,11 +61,11 @@ ...@@ -50,11 +61,11 @@
= paginate @projects, param_name: 'projects_page', theme: 'gitlab' = paginate @projects, param_name: 'projects_page', theme: 'gitlab'
- if @group.shared_projects.any? - if @group.shared_projects.any?
.ui-box .panel.panel-default
.title .panel-heading
Projects shared with #{@group.name} Projects shared with #{@group.name}
%small %span.badge
(#{@group.shared_projects.count}) #{@group.shared_projects.count}
%ul.well-list %ul.well-list
- @group.shared_projects.sort_by(&:name).each do |project| - @group.shared_projects.sort_by(&:name).each do |project|
%li %li
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
- if current_user && current_user.can?(:manage_group, @group) - if current_user && current_user.can?(:manage_group, @group)
.pull-right .pull-right
- if ldap_enabled? && @group.ldap_cn.present? - 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 Reset access
= link_to '#', class: 'btn btn-new js-toggle-button' do = link_to '#', class: 'btn btn-new js-toggle-button' do
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
.js-toggle-content.hide.new-group-member-holder .js-toggle-content.hide.new-group-member-holder
= render "new_group_member" = render "new_group_member"
- if ldap_enabled? && @group.ldap_cn.present?
.bs-callout.bs-callout-info
The members of this group are synced with the LDAP group with cn
%code #{@group.ldap_cn}
\. They are given
%code #{@group.human_ldap_access}
access.
.panel.panel-default.prepend-top-20 .panel.panel-default.prepend-top-20
.panel-heading .panel-heading
%strong #{@group.name} %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