Skip to content
Snippets Groups Projects
Commit 294acf1c authored by Alex Braha Stoll's avatar Alex Braha Stoll
Browse files

Remove root directory name from index of wikis

parent 91e1701b
No related branches found
No related tags found
1 merge request!8133Show directory hierarchy when listing wiki pages
- 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)}
Loading
@@ -15,13 +15,12 @@
Loading
@@ -15,13 +15,12 @@
   
%ul.content-list %ul.content-list
- @wiki_directories.each do |wiki_directory, wiki_pages| - @wiki_directories.each do |wiki_directory, wiki_pages|
%li - if wiki_directory == '/'
= wiki_directory = render 'wiki_pages', wiki_pages: wiki_pages
%ul - else
- wiki_pages.each do |wiki_page| %li
%li = wiki_directory
= link_to wiki_page.title, namespace_project_wiki_path(@project.namespace, @project, wiki_page) %ul
%small (#{wiki_page.format}) = render 'wiki_pages', wiki_pages: wiki_pages
.pull-right
%small Last edited #{time_ago_with_tooltip(wiki_page.commit.authored_date)}
= paginate @wiki_pages, theme: 'gitlab' = paginate @wiki_pages, theme: 'gitlab'
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