summaryrefslogtreecommitdiff
path: root/app/views/wikis/history.html.haml
blob: e31c5dc24260aa82ea23d696726139928e6f139a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%h3.page_title
  %span.cgray History for
  = @wikis.last.title
%br
%table.admin-table
  %thead
    %tr
      %th #
      %th last edit
      %th created by
  %tbody
    - @wikis.each_with_index do |wiki_page, i|
      %tr
        %td= i + 1
        %td
          = link_to wiki_page.created_at.to_s(:short), project_wiki_path(@project, wiki_page, old_page_id: wiki_page.id)
          (#{time_ago_in_words(wiki_page.created_at)}
          ago)
        %td= wiki_page.user.name