<%namespace name="base" file="/base/base.mako"/> <% elems = [ (_('User Group ID'), c.user_group.users_group_id, '', ''), (_('Owner'), lambda:base.gravatar_with_user(c.user_group.user.email), '', ''), (_('Created on'), h.format_date(c.user_group.created_on), '', '',), (_('Members'), len(c.group_members_obj),'', [x for x in c.group_members_obj]), (_('Automatic member sync'), 'Yes' if c.user_group.group_data.get('extern_type') else 'No', '', '',), (_('Assigned to repositories'), len(c.group_to_repos),'', [x for x in c.group_to_repos]), (_('Assigned to repo groups'), len(c.group_to_repo_groups), '', [x for x in c.group_to_repo_groups]), (_('Assigned to review rules'), len(c.group_to_review_rules), '', [x for x in c.group_to_review_rules]), ] %>

${h.link_to_group(c.user_group.users_group_name)} - ${_('Advanced')}

${base.dt_info_panel(elems)}

${_('Group members sync')}

<% sync_type = c.user_group.group_data.get('extern_type') %> % if sync_type:

${_('This group is set to be automatically synchronised.')}
${_('This group synchronization was set by')}: ${sync_type}

% else:

${_('This group is not set to be automatically synchronised')}

% endif
${h.secure_form(h.route_path('edit_user_group_advanced_sync', user_group_id=c.user_group.users_group_id), request=request)}
${_('Users will be added or removed from this group when they authenticate with RhodeCode system, based on LDAP group membership. ' 'This requires `LDAP+User group` authentication plugin to be configured and enabled. (EE only feature)')}
${h.end_form()}

${_('Delete User Group')}

${h.secure_form(h.route_path('user_groups_delete', user_group_id=c.user_group.users_group_id), request=request)} ${h.hidden('force', 1)} ${h.end_form()}