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

46 lines
2.4 KiB
Text
Raw Normal View History

- @no_container = true
2018-05-09 12:01:36 +05:30
- breadcrumb_title _("Details")
2018-03-17 18:26:18 +05:30
- can_create_subgroups = can?(current_user, :create_subgroup, @group)
2015-09-11 14:41:01 +05:30
= content_for :meta_tags do
2017-08-17 22:00:37 +05:30
= auto_discovery_link_tag(:atom, group_url(@group, rss_url_options), title: "#{@group.name} activity")
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
= render 'groups/home_panel'
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
.groups-header{ class: container_class }
2018-03-17 18:26:18 +05:30
.group-nav-container
.nav-controls.clearfix
= render "shared/groups/search_form"
= render "shared/groups/dropdown", show_archive_options: true
2016-06-02 11:05:42 +05:30
- if can? current_user, :create_projects, @group
2018-03-17 18:26:18 +05:30
- new_project_label = _("New project")
- new_subgroup_label = _("New subgroup")
- if can_create_subgroups
.btn-group.new-project-subgroup.droplab-dropdown.js-new-project-subgroup{ 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{ type: "button", value: new_project_label, data: { action: "new-project" } }
%button.btn.btn-success.dropdown-toggle.js-dropdown-toggle{ type: "button", data: { "dropdown-trigger" => "#new-project-or-subgroup-dropdown" } }
= icon("caret-down", class: "dropdown-btn-icon")
%ul#new-project-or-subgroup-dropdown.dropdown-menu.dropdown-menu-align-right{ data: { dropdown: true } }
%li.droplab-item-selected{ role: "button", data: { value: "new-project", text: new_project_label } }
.menu-item
.icon-container
= icon("check", class: "list-item-checkmark")
.description
%strong= new_project_label
%span= s_("GroupsTree|Create a project in this group.")
%li.divider.droplap-item-ignore
%li{ role: "button", data: { value: "new-subgroup", text: new_subgroup_label } }
.menu-item
.icon-container
= icon("check", class: "list-item-checkmark")
.description
%strong= new_subgroup_label
%span= s_("GroupsTree|Create a subgroup in this group.")
- else
= link_to new_project_label, new_project_path(namespace_id: @group.id), class: "btn btn-success"
2016-06-02 11:05:42 +05:30
2018-03-17 18:26:18 +05:30
- if params[:filter].blank? && !@has_children
= render "shared/groups/empty_state"
- else
= render "children", children: @children, group: @group