Skip to content
Snippets Groups Projects
Unverified Commit 8ef7dd46 authored by Paul Slaughter's avatar Paul Slaughter
Browse files

Add help item to bottom of signed out top nav

parent 2ae25491
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