summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/show.html.haml
blob: 76f9b1ecd762b7ddda0e9a6e4735331491754af9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- @no_container = true
- page_title @page.title.capitalize, "Wiki"
= render 'nav'

%div{ class: (container_class) }
  .top-area
    .nav-text
      %strong= @page.title.capitalize

      %span.wiki-last-edit-by
        ·
        last edited by #{@page.commit.author.name} #{time_ago_with_tooltip(@page.commit.authored_date)}

    .nav-controls
      = render 'main_links'

  - 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)}.


  .wiki-holder.prepend-top-default.append-bottom-default
    .wiki
      = preserve do
        = render_wiki_content(@page)