Commit eb95169f authored by James Lopez's avatar James Lopez

fix ldap group link and add some debug info

parent 606cf5d6
...@@ -37,6 +37,6 @@ ...@@ -37,6 +37,6 @@
= link_to 'Cancel', admin_group_path(@group), class: "btn btn-cancel" = link_to 'Cancel', admin_group_path(@group), class: "btn btn-cancel"
- if ldap_enabled? && @group.persisted? - if ldap_enabled? && @group.persisted?
%h3.page-title Linked LDAP groups %h3.page-title LDAP synchronizations
= render 'ldap_group_links/form', group: @group = render 'ldap_group_links/form', group: @group
= render 'ldap_group_links/ldap_group_links', group: @group = render 'ldap_group_links/ldap_group_links', group: @group
...@@ -63,13 +63,12 @@ ...@@ -63,13 +63,12 @@
= render partial: "namespaces/shared_runner_status", locals: { namespace: @group } = render partial: "namespaces/shared_runner_status", locals: { namespace: @group }
.panel.panel-default .panel.panel-default
.panel-heading Linked LDAP groups .panel-heading Active synchronizations
%ul.well-list %ul.well-list
- if @group.ldap_group_links.any? - if @group.ldap_group_links.any?
- @group.ldap_group_links.each do |ldap_group_link| - @group.ldap_group_links.each do |ldap_group_link|
%li %li
cn: %strong= ldap_group_link.cn ? "Group: #{ldap_group_link.cn}" : "Filter: #{truncate(ldap_group_link.filter, length: 70)}"
%strong= ldap_group_link.cn
as as
%strong= ldap_group_link.human_access %strong= ldap_group_link.human_access
......
- page_title 'LDAP Syncrhonizations' - page_title 'LDAP Syncrhonizations'
%h3.page-title Linked LDAP groups %h3.page-title LDAP synchronizations
= render 'ldap_group_links/form', group: @group = render 'ldap_group_links/form', group: @group
= render 'ldap_group_links/ldap_group_links', group: @group = render 'ldap_group_links/ldap_group_links', group: @group
%li %li
.pull-right .pull-right
= link_to group_ldap_group_link_path(group, ldap_group_link), method: :delete, class: 'btn btn-danger btn-sm' do = link_to group_ldap_group_link_path(group, ldap_group_link), method: :delete, class: 'btn btn-danger btn-sm' do
= fa_icon('unlink', text: 'unlink') = fa_icon('unlink', text: 'Remove')
%strong= ldap_group_link.cn ? "Group: #{ldap_group_link.cn}" : "Filter: #{truncate(ldap_group_link.filter, length: 70)}" %strong= ldap_group_link.cn ? "Group: #{ldap_group_link.cn}" : "Filter: #{truncate(ldap_group_link.filter, length: 70)}"
- if ldap_group_link.config - if ldap_group_link.config
......
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
%h4.panel-title %h4.panel-title
Linked LDAP groups (#{group.ldap_group_links.count}) Active synchronizations (#{group.ldap_group_links.count})
- if group.ldap_group_links.any? - if group.ldap_group_links.any?
%ul.well-list %ul.well-list
= render collection: group.ldap_group_links, partial: 'ldap_group_links/ldap_group_link', locals: { group: group } = render collection: group.ldap_group_links, partial: 'ldap_group_links/ldap_group_link', locals: { group: group }
- else - else
.panel-body .panel-body
No linked LDAP groups No LDAP synchronizations
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