Merge branch 'group-gear-setting-dropdown-to-tab' into 'master'
Moved the gear settings dropdown in the group view to a tab Closes #23304 See merge request !9882
This commit is contained in:
commit
acb1b3eec1
6 changed files with 25 additions and 20 deletions
14
app/views/groups/_settings_head.html.haml
Normal file
14
app/views/groups/_settings_head.html.haml
Normal file
|
@ -0,0 +1,14 @@
|
|||
= content_for :sub_nav do
|
||||
.scrolling-tabs-container.sub-nav-scroll
|
||||
= render 'shared/nav_scroll'
|
||||
.nav-links.sub-nav.scrolling-tabs
|
||||
%ul{ class: container_class }
|
||||
= nav_link(path: 'groups#edit') do
|
||||
= link_to edit_group_path(@group), title: 'General' do
|
||||
%span
|
||||
General
|
||||
|
||||
= nav_link(path: 'groups#projects') do
|
||||
= link_to projects_group_path(@group), title: 'Projects' do
|
||||
%span
|
||||
Projects
|
|
@ -1,3 +1,4 @@
|
|||
= render "groups/settings_head"
|
||||
.panel.panel-default.prepend-top-default
|
||||
.panel-heading
|
||||
Group settings
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- page_title "Projects"
|
||||
= render "groups/settings_head"
|
||||
|
||||
.panel.panel-default.prepend-top-default
|
||||
.panel-heading
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
= render 'layouts/nav/group_settings'
|
||||
.scrolling-tabs-container{ class: nav_control_class }
|
||||
.fade-left
|
||||
= icon('angle-left')
|
||||
|
@ -25,3 +24,8 @@
|
|||
= link_to group_group_members_path(@group), title: 'Members' do
|
||||
%span
|
||||
Members
|
||||
- if current_user && can?(current_user, :admin_group, @group)
|
||||
= nav_link(path: %w[groups#projects groups#edit]) do
|
||||
= link_to edit_group_path(@group), title: 'Settings' do
|
||||
%span
|
||||
Settings
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
- if current_user
|
||||
- can_admin_group = can?(current_user, :admin_group, @group)
|
||||
- can_edit = can?(current_user, :admin_group, @group)
|
||||
|
||||
- if can_admin_group || can_edit
|
||||
.controls
|
||||
.dropdown.group-settings-dropdown
|
||||
%a.dropdown-new.btn.btn-default#group-settings-button{ href: '#', 'data-toggle' => 'dropdown' }
|
||||
= icon('cog')
|
||||
= icon('caret-down')
|
||||
%ul.dropdown-menu.dropdown-menu-align-right
|
||||
- if can_admin_group
|
||||
= nav_link(path: 'groups#projects') do
|
||||
= link_to 'Projects', projects_group_path(@group), title: 'Projects'
|
||||
- if can_edit && can_admin_group
|
||||
%li.divider
|
||||
%li
|
||||
= link_to 'Edit Group', edit_group_path(@group)
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Moved the gear settings dropdown to a tab in the groups view
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in a new issue