debian-mirror-gitlab/app/views/admin/groups/show.html.haml

133 lines
4.9 KiB
Text
Raw Normal View History

2018-11-18 11:00:15 +05:30
- add_to_breadcrumbs _("Groups"), admin_groups_path
2018-03-17 18:26:18 +05:30
- breadcrumb_title @group.name
2018-11-18 11:00:15 +05:30
- page_title @group.name, _("Groups")
2020-07-28 23:09:34 +05:30
.js-remove-member-modal
2014-09-02 18:07:02 +05:30
%h3.page-title
2018-11-18 11:00:15 +05:30
= _('Group: %{group_name}') % { group_name: @group.full_name }
2014-09-02 18:07:02 +05:30
2020-10-24 23:57:45 +05:30
= link_to admin_group_edit_path(@group), class: "btn btn-default gl-button float-right", data: { qa_selector: 'edit_group_link' } do
= sprite_icon('pencil-square', css_class: 'gl-icon')
2018-11-18 11:00:15 +05:30
= _('Edit')
2014-09-02 18:07:02 +05:30
%hr
.row
.col-md-6
2018-11-08 19:23:39 +05:30
.card
.card-header
2018-11-18 11:00:15 +05:30
= _('Group info:')
2018-11-08 19:23:39 +05:30
%ul.content-list
2014-09-02 18:07:02 +05:30
%li
2019-07-07 11:18:12 +05:30
.avatar-container.rect-avatar.s60
2018-03-17 18:26:18 +05:30
= group_icon(@group, class: "avatar s60")
2014-09-02 18:07:02 +05:30
%li
2018-11-18 11:00:15 +05:30
%span.light= _('Name:')
2020-01-01 13:55:28 +05:30
%strong
= link_to @group.name, group_path(@group)
2014-09-02 18:07:02 +05:30
%li
2018-11-18 11:00:15 +05:30
%span.light= _('Path:')
2014-09-02 18:07:02 +05:30
%strong
= @group.path
%li
2018-11-18 11:00:15 +05:30
%span.light= _('Description:')
2014-09-02 18:07:02 +05:30
%strong
= @group.description
2016-06-02 11:05:42 +05:30
%li
2018-11-18 11:00:15 +05:30
%span.light= _('Visibility level:')
2016-06-02 11:05:42 +05:30
%strong
= visibility_level_label(@group.visibility_level)
2014-09-02 18:07:02 +05:30
%li
2018-11-18 11:00:15 +05:30
%span.light= _('Created on:')
2014-09-02 18:07:02 +05:30
%strong
= @group.created_at.to_s(:medium)
2014-09-02 18:07:02 +05:30
2019-10-12 21:52:04 +05:30
%li
%span.light= _('ID:')
%strong
= @group.id
2018-11-08 19:23:39 +05:30
= render_if_exists 'admin/namespace_plan_info', namespace: @group
2017-08-17 22:00:37 +05:30
%li
2019-09-30 21:07:59 +05:30
= render 'shared/storage_counter_statistics', storage_size: @group.storage_size, storage_details: @group
2017-08-17 22:00:37 +05:30
2016-09-29 09:46:39 +05:30
%li
2018-11-18 11:00:15 +05:30
%span.light= _('Group Git LFS status:')
2016-09-29 09:46:39 +05:30
%strong
= group_lfs_status(@group)
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'), help_page_path('topics/git/lfs/index')
2016-09-29 09:46:39 +05:30
2018-11-08 19:23:39 +05:30
= render_if_exists 'namespaces/shared_runner_status', namespace: @group
2020-06-23 00:09:42 +05:30
= render 'shared/custom_attributes', custom_attributes: @group.custom_attributes
2018-11-08 19:23:39 +05:30
= render_if_exists 'ldap_group_links/ldap_group_links_show', group: @group
.card
.card-header
2018-12-13 13:39:08 +05:30
= _('Projects')
%span.badge.badge-pill
#{@group.projects.count}
2018-11-08 19:23:39 +05:30
%ul.content-list
2014-09-02 18:07:02 +05:30
- @projects.each do |project|
%li
%strong
2020-10-24 23:57:45 +05:30
= link_to project.full_name, [:admin, project]
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill
2017-08-17 22:00:37 +05:30
= storage_counter(project.statistics.storage_size)
2018-11-08 19:23:39 +05:30
%span.float-right.light
2017-09-10 17:25:29 +05:30
%span.monospace= project.full_path + '.git'
2018-11-08 19:23:39 +05:30
.card-footer
2014-09-02 18:07:02 +05:30
= paginate @projects, param_name: 'projects_page', theme: 'gitlab'
2020-04-22 19:07:51 +05:30
- shared_projects = @group.shared_projects.sort_by(&:name)
- unless shared_projects.empty?
2018-11-08 19:23:39 +05:30
.card
.card-header
2018-11-18 11:00:15 +05:30
= _('Projects shared with %{group_name}') % { group_name: @group.name }
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill
2020-04-22 19:07:51 +05:30
#{shared_projects.size}
2018-11-08 19:23:39 +05:30
%ul.content-list
2020-04-22 19:07:51 +05:30
- shared_projects.each do |project|
2016-06-02 11:05:42 +05:30
%li
%strong
2020-10-24 23:57:45 +05:30
= link_to project.full_name, [:admin, project]
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill
2017-08-17 22:00:37 +05:30
= storage_counter(project.statistics.storage_size)
2018-11-08 19:23:39 +05:30
%span.float-right.light
2017-09-10 17:25:29 +05:30
%span.monospace= project.full_path + '.git'
2016-06-02 11:05:42 +05:30
2014-09-02 18:07:02 +05:30
.col-md-6
2015-09-11 14:41:01 +05:30
- if can?(current_user, :admin_group_member, @group)
2018-11-08 19:23:39 +05:30
.card
.card-header
2018-11-18 11:00:15 +05:30
= _('Add user(s) to the group:')
2018-11-08 19:23:39 +05:30
.card-body.form-holder
2015-09-11 14:41:01 +05:30
%p.light
2020-10-24 23:57:45 +05:30
- help_link_open = '<strong><a href="%{help_url}">'.html_safe % { help_url: help_page_url("user/permissions") }
= html_escape(_('Read more about project permissions %{help_link_open}here%{help_link_close}')) % { help_link_open: help_link_open, help_link_close: '</a></strong>'.html_safe }
2014-09-02 18:07:02 +05:30
2019-03-02 22:35:43 +05:30
= form_tag admin_group_members_update_path(@group), id: "new_project_member", class: "bulk_import", method: :put do
2015-09-11 14:41:01 +05:30
%div
2018-11-08 19:23:39 +05:30
= users_select_tag(:user_ids, multiple: true, email_user: true, skip_ldap: @group.ldap_synced?, scope: :all)
2020-10-24 23:57:45 +05:30
.gl-mt-3
2015-09-11 14:41:01 +05:30
= select_tag :access_level, options_for_select(GroupMember.access_level_roles), class: "project-access-select select2"
%hr
2018-12-05 23:21:45 +05:30
= button_tag _('Add users to group'), class: "btn btn-success"
2017-09-10 17:25:29 +05:30
= render 'shared/members/requests', membership_source: @group, requesters: @requesters, force_mobile_view: true
2016-08-24 12:49:21 +05:30
2018-11-08 19:23:39 +05:30
.card
.card-header
2020-10-24 23:57:45 +05:30
= html_escape(_("%{group_name} group members")) % { group_name: "<strong>#{html_escape(@group.name)}</strong>".html_safe }
2018-11-08 19:23:39 +05:30
%span.badge.badge-pill= @group.members.size
.float-right
2020-10-24 23:57:45 +05:30
= link_to group_group_members_path(@group), class: 'btn btn-default gl-button btn-sm' do
= sprite_icon('pencil-square', css_class: 'gl-icon')
= _('Manage access')
2018-11-08 19:23:39 +05:30
%ul.content-list.group-users-list.content-list.members-list
2016-08-24 12:49:21 +05:30
= render partial: 'shared/members/member', collection: @members, as: :member, locals: { show_controls: false }
2018-11-08 19:23:39 +05:30
.card-footer
2014-09-02 18:07:02 +05:30
= paginate @members, param_name: 'members_page', theme: 'gitlab'