diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-10-24 15:55:16 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-11-08 13:14:06 +0300 |
commit | 76991929855f2a9f801fa16f80ccebad28853dd8 (patch) | |
tree | bd9bd65f996f97e70a44bee192a2ff28bdc5affd /app/views/layouts/nav/sidebar | |
parent | dcf0caaa0656b421b5a80e45c4a3e14785cb269a (diff) |
Adds Kubernetes sidebar for groups
As this is the only item in this menu, make Kubernetes the link for the
sidebar item too.
Diffstat (limited to 'app/views/layouts/nav/sidebar')
-rw-r--r-- | app/views/layouts/nav/sidebar/_group.html.haml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/layouts/nav/sidebar/_group.html.haml b/app/views/layouts/nav/sidebar/_group.html.haml index b390c396a09..3cd5168c1f7 100644 --- a/app/views/layouts/nav/sidebar/_group.html.haml +++ b/app/views/layouts/nav/sidebar/_group.html.haml @@ -116,6 +116,19 @@ %strong.fly-out-top-item-name = _('Members') + - if group_sidebar_link?(:kubernetes) + = nav_link(controller: [:clusters]) do + = link_to group_clusters_path(@group) do + .nav-icon-container + = sprite_icon('cloud-gear') + %span.nav-item-name + = _('Kubernetes') + %ul.sidebar-sub-level-items.is-fly-out-only + = nav_link(controller: [:clusters], html_options: { class: "fly-out-top-item" } ) do + = link_to group_clusters_path(@group), title: _('Kubernetes'), class: 'shortcuts-kubernetes' do + %strong.fly-out-top-item-name + = _('Kubernetes') + - if group_sidebar_link?(:settings) = nav_link(path: group_nav_link_paths) do = link_to edit_group_path(@group) do |