Commit 2018e51b authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Moved the gear settings dropdown in the group view to a tab

parent 0c5f5ec8
= 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#projects') do
= link_to projects_group_path(@group), title: 'Projects' do
%span
Projects
= nav_link(path: 'groups#edit') do
= link_to edit_group_path(@group), title: 'Edit Group' do
%span
Edit Group
\ No newline at end of file
= render "groups/settings_head"
.panel.panel-default.prepend-top-default
.panel-heading
Group settings
......
- page_title "Projects"
= render "groups/settings_head"
.panel.panel-default.prepend-top-default
.panel-heading
......
= render 'layouts/nav/group_settings'
- can_admin_group = can?(current_user, :admin_group, @group)
- can_edit = can?(current_user, :admin_group, @group)
.scrolling-tabs-container{ class: nav_control_class }
.fade-left
= icon('angle-left')
......@@ -25,8 +26,15 @@
= link_to group_group_members_path(@group), title: 'Members' do
%span
Members
= nav_link(controller: [:stats]) do
= nav_link(controller: [:stats]) do
= link_to group_analytics_path(@group), title: 'Contribution Analytics', data: {placement: 'right'} do
%span
Contribution Analytics
- if current_user
- if can_admin_group || can_edit
= nav_link(path: %w[groups#projects groups#edit]) do
= link_to projects_group_path(@group), title: 'Settings' do
%span
Settings
---
title: Moved the gear settings dropdown to a tab in the groups view
merge_request:
author:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment