Skip to content
Snippets Groups Projects
Commit 60a0bfb1 authored by Max Woolf's avatar Max Woolf
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -44,6 +44,13 @@ def build_anonymous_view_model(builder:)
**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:)
Loading
Loading
Loading
Loading
@@ -94,6 +94,18 @@
]
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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment