Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
02814027
Commit
02814027
authored
Jul 09, 2020
by
Tom Quirk
Committed by
Gabriel Mazetto
Jul 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add wiki link to group sidebar
parent
5f9eeb6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
app/views/layouts/nav/sidebar/_group.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
+14
-0
qa/qa/page/group/menu.rb
qa/qa/page/group/menu.rb
+7
-0
No files found.
app/views/layouts/nav/sidebar/_group.html.haml
View file @
02814027
...
...
@@ -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
...
...
qa/qa/page/group/menu.rb
View file @
02814027
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment