gitlab-org--gitlab-foss/app/views/projects/wikis/show.html.haml

27 lines
825 B
Text
Raw Normal View History

2016-06-15 10:31:41 -04:00
- @no_container = true
- page_title @page.title.capitalize, "Wiki"
= render 'nav'
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
2016-06-15 10:31:41 -04:00
.top-area
.nav-text
%strong= @page.title.capitalize
2016-06-15 10:31:41 -04:00
%span.wiki-last-edit-by
·
last edited by #{@page.commit.author.name} #{time_ago_with_tooltip(@page.commit.authored_date)}
2016-06-15 10:31:41 -04:00
.nav-controls
= render 'main_links'
2016-06-15 10:31:41 -04:00
- if @page.historical?
.warning_message
This is an old version of this page.
You can view the #{link_to "most recent version", namespace_project_wiki_path(@project.namespace, @project, @page)} or browse the #{link_to "history", namespace_project_wiki_history_path(@project.namespace, @project, @page)}.
2016-06-15 10:31:41 -04:00
.wiki-holder.prepend-top-default.append-bottom-default
.wiki
= preserve do
= render_wiki_content(@page)