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 @@
%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'
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