Commit 60a0bfb1 authored by Max Woolf's avatar Max Woolf

Merge branch '301143-add-help-to-signed-out-menu' into 'master'

Add help item to bottom of signed out top nav

See merge request gitlab-org/gitlab!62171
parents bfe2457a 8ef7dd46
......@@ -44,6 +44,13 @@ module Nav
**snippets_menu_item_attrs
)
end
builder.add_secondary_menu_item(
id: 'help',
title: _('Help'),
icon: 'question-o',
href: help_path
)
end
def build_view_model(builder:, project:, group:)
......
......@@ -94,6 +94,18 @@ RSpec.describe Nav::TopNavHelper do
]
expect(subject[:shortcuts]).to eq(expected_shortcuts)
end
it 'has expected :secondary' do
expected_secondary = [
::Gitlab::Nav::TopNavMenuItem.build(
href: '/help',
id: 'help',
title: 'Help',
icon: 'question-o'
)
]
expect(subject[:secondary]).to eq(expected_secondary)
end
end
context 'when current_user is non-admin' do
......
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