history.html.haml 1.16 KB
Newer Older
1
- page_title _("History"), @page.title, _("Wiki")
2

Phil Hughes's avatar
Phil Hughes committed
3 4 5
.wiki-page-header.has-sidebar-toggle
  %button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
    = icon('angle-double-left')
6

Phil Hughes's avatar
Phil Hughes committed
7 8
  .nav-text
    %h2.wiki-page-title
9
      = link_to @page.title, project_wiki_path(@project, @page)
Phil Hughes's avatar
Phil Hughes committed
10 11
      %span.light
        ·
12
        = _("History")
13

Phil Hughes's avatar
Phil Hughes committed
14 15 16 17
.table-holder
  %table.table
    %thead
      %tr
18 19 20 21 22
        %th= s_("Wiki|Page version")
        %th= _("Author")
        %th= _("Commit Message")
        %th= _("Last updated")
        %th= _("Format")
Phil Hughes's avatar
Phil Hughes committed
23
    %tbody
24
      - @page_versions.each_with_index do |version, index|
Phil Hughes's avatar
Phil Hughes committed
25
        - commit = version
Douwe Maan's avatar
Douwe Maan committed
26
        %tr
Phil Hughes's avatar
Phil Hughes committed
27 28 29 30 31
          %td
            = link_to project_wiki_path_with_version(@project, @page,
                                                     commit.id, index == 0) do
              = truncate_sha(commit.id)
          %td
32
            = commit.author_name
Phil Hughes's avatar
Phil Hughes committed
33 34 35 36 37 38
          %td
            = commit.message
          %td
            #{time_ago_with_tooltip(version.authored_date)}
          %td
            %strong
39
              = version.format
40
= paginate @page_versions, theme: 'gitlab'
41 42

= render 'sidebar'