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

Add new wiki related partials

parent 389bd6b7
No related branches found
No related tags found
1 merge request!8133Show directory hierarchy when listing wiki pages
%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)}
%li{ class: params[:id] == wiki_page.slug ? 'active' : '' }
= link_to namespace_project_wiki_path(@project.namespace, @project, wiki_page) do
= wiki_page.title.capitalize
- if context == 'sidebar' = render "#{context}_wiki_page", wiki_page: 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
- else
%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)}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment