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
294acf1c
Commit
294acf1c
authored
Dec 17, 2016
by
Alex Braha Stoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove root directory name from index of wikis
parent
91e1701b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
app/views/projects/wikis/_wiki_pages.html.haml
app/views/projects/wikis/_wiki_pages.html.haml
+6
-0
app/views/projects/wikis/pages.html.haml
app/views/projects/wikis/pages.html.haml
+8
-9
No files found.
app/views/projects/wikis/_wiki_pages.html.haml
0 → 100644
View file @
294acf1c
-
wiki_pages
.
each
do
|
wiki_page
|
%li
=
link_to
wiki_page
.
title
,
namespace_project_wiki_path
(
@project
.
namespace
,
@project
,
wiki_page
)
%small
(
#{
wiki_page
.
format
}
)
.pull-right
%small
Last edited
#{
time_ago_with_tooltip
(
wiki_page
.
commit
.
authored_date
)
}
app/views/projects/wikis/pages.html.haml
View file @
294acf1c
...
...
@@ -15,13 +15,12 @@
%ul
.content-list
-
@wiki_directories
.
each
do
|
wiki_directory
,
wiki_pages
|
%li
=
wiki_directory
%ul
-
wiki_pages
.
each
do
|
wiki_page
|
%li
=
link_to
wiki_page
.
title
,
namespace_project_wiki_path
(
@project
.
namespace
,
@project
,
wiki_page
)
%small
(
#{
wiki_page
.
format
}
)
.pull-right
%small
Last edited
#{
time_ago_with_tooltip
(
wiki_page
.
commit
.
authored_date
)
}
-
if
wiki_directory
==
'/'
=
render
'wiki_pages'
,
wiki_pages:
wiki_pages
-
else
%li
=
wiki_directory
%ul
=
render
'wiki_pages'
,
wiki_pages:
wiki_pages
=
paginate
@wiki_pages
,
theme:
'gitlab'
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