2018-06-15 07:47:37 -04:00
- @content_class = "limit-container-width" unless fluid_layout
2017-08-16 08:13:34 -04:00
- breadcrumb_title @page.title.capitalize
- wiki_breadcrumb_dropdown_links(@page.slug)
2017-09-27 13:13:29 -04:00
- page_title @page.title.capitalize, _("Wiki")
- add_to_breadcrumbs _("Wiki"), get_project_wiki_path(@project)
2017-08-16 08:13:34 -04:00
2017-06-12 07:47:46 -04: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 16:33:21 -05:00
2017-06-12 07:47:46 -04:00
.nav-text
%h2.wiki-page-title= @page.title.capitalize
%span.wiki-last-edit-by
2018-10-15 15:07:02 -04:00
- if @page.last_version
= (_("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 17:41:31 -04:00
2017-06-12 07:47:46 -04:00
.nav-controls
= render 'main_links'
2016-02-07 11:57:28 -05:00
2017-06-12 07:47:46 -04:00
- if @page.historical?
.warning_message
2017-09-27 13:13:29 -04: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 15:04:21 -05:00
2018-04-25 16:30:12 -04:00
.prepend-top-default.append-bottom-default
2017-06-12 07:47:46 -04:00
.wiki
2018-09-04 09:42:23 -04:00
= render_wiki_content(@page, legacy_render_context(params))
2016-11-14 16:33:21 -05:00
= render 'sidebar'