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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
a1518055
Commit
a1518055
authored
Nov 15, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add wiki page list to sidebar
parent
8e23d7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
app/views/projects/wikis/_sidebar.html.haml
app/views/projects/wikis/_sidebar.html.haml
+4
-5
No files found.
app/views/projects/wikis/_sidebar.html.haml
View file @
a1518055
...
...
@@ -12,10 +12,9 @@
.blocks-container
.block.block-first
%ul
.wiki-pages
%li
{
class:
params
[
:id
]
==
'home'
?
'active'
:
''
}
=
link_to
'Home'
,
namespace_project_wiki_path
(
@project
.
namespace
,
@project
,
:home
)
%li
{
class:
active_nav_link?
(
path:
'wikis#pages'
)
?
'active'
:
''
}
=
link_to
'Pages'
,
namespace_project_wikis_pages_path
(
@project
.
namespace
,
@project
)
-
@project_wiki
.
pages
.
each
do
|
wiki_page
|
%li
{
class:
params
[
:id
]
==
wiki_page
.
slug
?
'active'
:
''
}
=
link_to
namespace_project_wiki_path
(
@project
.
namespace
,
@project
,
wiki_page
)
do
=
wiki_page
.
title
.
capitalize
=
render
'projects/wikis/new'
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