summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/show.html.haml
blob: d684576eef1225b01ba0b2f980e4a402613ba39d (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
- page_title @page.title.capitalize, "维基"
= render "header_title"
= render 'nav'

.top-area
  .nav-text
    %strong= @page.title.capitalize

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

  .nav-controls
    = render 'main_links'

- if @page.historical?
  .warning_message
    这是本页面的旧版本。
    你可以查看#{link_to "最近修改版本", namespace_project_wiki_path(@project.namespace, @project, @page)}或浏览#{link_to "历史记录", namespace_project_wiki_history_path(@project.namespace, @project, @page)}。


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