2018-06-15 11:47:37 +00:00
- @content_class = "limit-container-width" unless fluid_layout
2017-08-16 12:13:34 +00:00
- breadcrumb_title @page.title.capitalize
- wiki_breadcrumb_dropdown_links(@page.slug)
2017-09-27 17:13:29 +00:00
- page_title @page.title.capitalize, _("Wiki")
- add_to_breadcrumbs _("Wiki"), get_project_wiki_path(@project)
2017-08-16 12:13:34 +00:00
2017-06-12 11:47:46 +00:00
.wiki-page-header.has-sidebar-toggle
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
= icon('angle-double-left')
2016-11-14 21:33:21 +00:00
2017-06-12 11:47:46 +00:00
.nav-text
%h2.wiki-page-title= @page.title.capitalize
%span.wiki-last-edit-by
2017-11-17 11:48:32 +00:00
= (_("Last edited by %{name}") % { name: "<strong>#{@page.last_version.author_name}</strong>" }).html_safe
#{time_ago_with_tooltip(@page.last_version.authored_date)}
2015-07-27 21:41:31 +00:00
2017-06-12 11:47:46 +00:00
.nav-controls
= render 'main_links'
2016-02-07 16:57:28 +00:00
2017-06-12 11:47:46 +00:00
- if @page.historical?
.warning_message
2017-09-27 17:13:29 +00:00
= s_("WikiHistoricalPage|This is an old version of this page.")
- most_recent_link = link_to s_("WikiHistoricalPage|most recent version"), project_wiki_path(@project, @page)
- history_link = link_to s_("WikiHistoricalPage|history"), project_wiki_history_path(@project, @page)
= (s_("WikiHistoricalPage|You can view the %{most_recent_link} or browse the %{history_link}.") % { most_recent_link: most_recent_link, history_link: history_link }).html_safe
2013-01-11 20:04:21 +00:00
2018-04-25 20:30:12 +00:00
.prepend-top-default.append-bottom-default
2017-06-12 11:47:46 +00:00
.wiki
2018-09-04 13:42:23 +00:00
= render_wiki_content(@page, legacy_render_context(params))
2016-11-14 21:33:21 +00:00
= render 'sidebar'