2016-01-13 10:26:40 -05:00
|
|
|
- @no_container = true
|
2018-03-29 08:06:49 -04:00
|
|
|
- breadcrumb_title _("Details")
|
2017-10-05 08:23:01 -04:00
|
|
|
- can_create_subgroups = can?(current_user, :create_subgroup, @group)
|
2016-01-13 10:26:40 -05:00
|
|
|
|
2015-04-21 10:31:40 -04:00
|
|
|
= content_for :meta_tags do
|
2017-02-28 15:50:57 -05:00
|
|
|
= auto_discovery_link_tag(:atom, group_url(@group, rss_url_options), title: "#{@group.name} activity")
|
2015-04-21 10:31:40 -04:00
|
|
|
|
2017-05-20 15:27:35 -04:00
|
|
|
= render 'groups/home_panel'
|
2015-12-22 10:37:29 -05:00
|
|
|
|
2018-09-07 02:09:13 -04:00
|
|
|
.groups-listing{ class: container_class, data: { endpoints: { default: group_children_path(@group, format: :json), shared: group_shared_projects_path(@group, format: :json) } } }
|
|
|
|
.top-area.group-nav-container
|
|
|
|
.group-search
|
2017-10-04 10:10:24 -04:00
|
|
|
= render "shared/groups/search_form"
|
2016-03-20 16:03:53 -04:00
|
|
|
- if can? current_user, :create_projects, @group
|
2017-10-04 10:10:24 -04:00
|
|
|
- new_project_label = _("New project")
|
|
|
|
- new_subgroup_label = _("New subgroup")
|
2017-10-05 10:23:57 -04:00
|
|
|
- if can_create_subgroups
|
2018-09-26 09:55:44 -04:00
|
|
|
.btn-group.new-project-subgroup.droplab-dropdown.js-new-project-subgroup.qa-new-project-or-subgroup-dropdown{ data: { project_path: new_project_path(namespace_id: @group.id), subgroup_path: new_group_path(parent_id: @group.id) } }
|
|
|
|
%input.btn.btn-success.dropdown-primary.js-new-group-child.qa-new-in-group-button{ type: "button", value: new_project_label, data: { action: "new-project" } }
|
|
|
|
%button.btn.btn-success.dropdown-toggle.js-dropdown-toggle.qa-new-project-or-subgroup-dropdown-toggle{ type: "button", data: { "dropdown-trigger" => "#new-project-or-subgroup-dropdown", 'display' => 'static' } }
|
2017-10-05 08:23:01 -04:00
|
|
|
= icon("caret-down", class: "dropdown-btn-icon")
|
2018-04-17 13:18:41 -04:00
|
|
|
%ul#new-project-or-subgroup-dropdown.dropdown-menu.dropdown-menu-right{ data: { dropdown: true } }
|
2018-09-26 09:55:44 -04:00
|
|
|
%li.droplab-item-selected.qa-new-project-option{ role: "button", data: { value: "new-project", text: new_project_label } }
|
2017-10-05 10:23:57 -04:00
|
|
|
.menu-item
|
|
|
|
.icon-container
|
|
|
|
= icon("check", class: "list-item-checkmark")
|
|
|
|
.description
|
|
|
|
%strong= new_project_label
|
2017-10-10 10:15:53 -04:00
|
|
|
%span= s_("GroupsTree|Create a project in this group.")
|
2017-10-05 08:23:01 -04:00
|
|
|
%li.divider.droplap-item-ignore
|
2018-09-26 09:55:44 -04:00
|
|
|
%li.qa-new-subgroup-option{ role: "button", data: { value: "new-subgroup", text: new_subgroup_label } }
|
2017-10-05 08:23:01 -04:00
|
|
|
.menu-item
|
|
|
|
.icon-container
|
|
|
|
= icon("check", class: "list-item-checkmark")
|
|
|
|
.description
|
|
|
|
%strong= new_subgroup_label
|
2017-10-10 10:15:53 -04:00
|
|
|
%span= s_("GroupsTree|Create a subgroup in this group.")
|
2017-10-05 10:23:57 -04:00
|
|
|
- else
|
|
|
|
= link_to new_project_label, new_project_path(namespace_id: @group.id), class: "btn btn-success"
|
2016-03-20 16:03:53 -04:00
|
|
|
|
2018-09-07 02:09:13 -04:00
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs
|
|
|
|
.fade-left= icon('angle-left')
|
|
|
|
.fade-right= icon('angle-right')
|
|
|
|
%ul.nav-links.scrolling-tabs.mobile-separator.nav.nav-tabs
|
|
|
|
%li.js-subgroups_and_projects-tab
|
|
|
|
= link_to group_path, data: { target: 'div#subgroups_and_projects', action: 'subgroups_and_projects', toggle: 'tab'} do
|
|
|
|
= _("Subgroups and projects")
|
|
|
|
%li.js-shared-tab
|
|
|
|
= link_to group_shared_path, data: { target: 'div#shared', action: 'shared', toggle: 'tab'} do
|
|
|
|
= _("Shared projects")
|
|
|
|
%li.js-archived-tab
|
|
|
|
= link_to group_archived_path, data: { target: 'div#archived', action: 'archived', toggle: 'tab'} do
|
|
|
|
= _("Archived projects")
|
|
|
|
|
|
|
|
.nav-controls
|
2018-10-11 10:14:44 -04:00
|
|
|
= render "shared/groups/dropdown", options_hash: subgroups_sort_options_hash
|
2018-09-07 02:09:13 -04:00
|
|
|
|
|
|
|
.tab-content
|
|
|
|
#subgroups_and_projects.tab-pane
|
|
|
|
= render "subgroups_and_projects", group: @group
|
|
|
|
|
|
|
|
#shared.tab-pane
|
|
|
|
= render "shared_projects", group: @group
|
|
|
|
|
|
|
|
#archived.tab-pane
|
|
|
|
= render "archived_projects", group: @group
|