Commit 294acf1c authored by Alex Braha Stoll's avatar Alex Braha Stoll

Remove root directory name from index of wikis

parent 91e1701b
- 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)}
...@@ -15,13 +15,12 @@ ...@@ -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'
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