Commit 02814027 authored by Tom Quirk's avatar Tom Quirk Committed by Gabriel Mazetto

Add wiki link to group sidebar

parent 5f9eeb6c
......@@ -123,6 +123,20 @@
= render 'layouts/nav/sidebar/analytics_links', links: group_analytics_navbar_links(@group, current_user)
- if group_sidebar_link?(:wiki)
- wiki_url = @group.wiki.web_url
= nav_link(controller: :wikis) do
= link_to wiki_url, class: 'shortcuts-wiki', data: { qa_selector: 'wiki_link' } do
.nav-icon-container
= sprite_icon('book')
%span.nav-item-name
= _('Wiki')
%ul.sidebar-sub-level-items.is-fly-out-only
= nav_link(controller: :wikis, html_options: { class: "fly-out-top-item" } ) do
= link_to wiki_url do
%strong.fly-out-top-item-name
= _('Wiki')
- if group_sidebar_link?(:group_members)
= nav_link(path: 'group_members#index') do
= link_to group_group_members_path(@group) do
......
......@@ -12,6 +12,7 @@ module QA
element :group_members_item
element :group_milestones_link
element :group_settings_item
element :wiki_link
end
view 'app/views/layouts/nav/sidebar/_analytics_links.html.haml' do
......@@ -65,6 +66,12 @@ module QA
yield
end
end
def click_wiki
within_sidebar do
click_element(:wiki_link)
end
end
end
end
end
......
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