show.html.haml 1.45 KB
Newer Older
1
- @content_class = "limit-container-width" unless fluid_layout
2
- breadcrumb_title @page.human_title
3
- wiki_breadcrumb_dropdown_links(@page.slug)
4
- page_title @page.human_title, _("Wiki")
5
- add_to_breadcrumbs _("Wiki"), project_wiki_path(@project, :home)
6

7
.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
Phil Hughes's avatar
Phil Hughes committed
8 9
  %button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
    = icon('angle-double-left')
10

11
  .nav-text.flex-fill
12
    %h2.wiki-page-title= @page.human_title
Phil Hughes's avatar
Phil Hughes committed
13
    %span.wiki-last-edit-by
14 15 16
      - 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)}
17

18
  .nav-controls.pb-md-3.pb-lg-0
Phil Hughes's avatar
Phil Hughes committed
19
    = render 'main_links'
20

Phil Hughes's avatar
Phil Hughes committed
21 22
- if @page.historical?
  .warning_message
23 24 25 26
    = 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
27

28
.prepend-top-default.append-bottom-default
29
  .md.md-file{ data: { qa_selector: 'wiki_page_content' } }
30
    = render_wiki_content(@page)
31 32

= render 'sidebar'