Commit b2a39013 authored by Filipa Lacerda's avatar Filipa Lacerda

Transforms Operations link into a dropdown

This commit updates the Operations link in the top navbar
into a dropdown to include a link to the environments
dashboard

Adds inline permission for Operations link
parent ba01a225
- if can?(current_user, :read_operations_dashboard)
= nav_link(controller: 'operations') do
= link_to operations_path, title: _('Operations'), aria: { label: _('Operations') } do
%li.dropdown
%button.btn-link{ type: 'button', data: { toggle: 'dropdown' } }
= sprite_icon('dashboard', size: 18)
.dropdown-menu
= link_to operations_path, class: 'dropdown-item', title: _('Environments'), aria: { label: _('Environments') } do
= _('Environments')
- if can?(current_user, :read_operations_dashboard)
= link_to operations_path, class: 'dropdown-item', title: _('Operations'), aria: { label: _('Operations') } do
= _('Operations')
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