BigW Consortium Gitlab

history.html.haml 737 Bytes
Newer Older
1
= render 'nav'
2
%h3.page-title
3
  %span.light History for
4
  = link_to @page.title, project_wiki_path(@project, @page)
5

6
%table.table
Valery Sizov committed
7 8
  %thead
    %tr
Riyad Preukschas committed
9
      %th Page version
10 11
      %th Author
      %th Commit Message
Riyad Preukschas committed
12
      %th Last updated
13
      %th Format
Valery Sizov committed
14
  %tbody
15
    - @page.versions.each do |version|
16
      - commit = version
Valery Sizov committed
17
      %tr
Valery Sizov committed
18
        %td
19
          = link_to project_wiki_path(@project, @page, version_id: commit.id) do
20
            = commit.short_id
21 22
        %td
          = commit_author_link(commit, avatar: true, size: 24)
23 24
        %td
          = commit.title
Riyad Preukschas committed
25
        %td
26
          #{time_ago_with_tooltip(version.date)}
27 28
        %td
          %strong
29
            = @page.page.wiki.page(@page.page.name, commit.id).try(:format)