%namespace name="base" file="/base/base.mako"/> <% elems = [ (_('Created on'), h.format_date(c.user.created_on), '', ''), (_('Source of Record'), c.user.extern_type, '', ''), (_('Last login'), c.user.last_login or '-', '', ''), (_('Last activity'), c.user.last_activity, '', ''), (_('Repositories'), len(c.user.repositories), '', [x.repo_name for x in c.user.repositories]), (_('Repository groups'), len(c.user.repository_groups), '', [x.group_name for x in c.user.repository_groups]), (_('User groups'), len(c.user.user_groups), '', [x.users_group_name for x in c.user.user_groups]), (_('Reviewer of pull requests'), len(c.user.reviewer_pull_requests), '', ['Pull Request #{}'.format(x.pull_request.pull_request_id) for x in c.user.reviewer_pull_requests]), (_('Member of User groups'), len(c.user.group_member), '', [x.users_group.users_group_name for x in c.user.group_member]), (_('Force password change'), c.user.user_data.get('force_password_change', 'False'), '', ''), ] %>
${_ungettext('This user owns %s repository.', 'This user owns %s repositories.', len(c.user.repositories)) % len(c.user.repositories)} | %if len(c.user.repositories) > 0: %endif | %if len(c.user.repositories) > 0: %endif |
${_ungettext('This user owns %s repository group.', 'This user owns %s repository groups.', len(c.user.repository_groups)) % len(c.user.repository_groups)} | %if len(c.user.repository_groups) > 0: %endif | %if len(c.user.repository_groups) > 0: %endif |
${_ungettext('This user owns %s user group.', 'This user owns %s user groups.', len(c.user.user_groups)) % len(c.user.user_groups)} | %if len(c.user.user_groups) > 0: %endif | %if len(c.user.user_groups) > 0: %endif |
${c.can_delete_user_message}
% endif${_("When selecting the detach option, the depending objects owned by this user will be assigned to the `%s` super admin in the system. The delete option will delete the user's repositories!") % (c.first_admin.full_name)}
%endif