summaryrefslogtreecommitdiff
path: root/app/views/shared/wikis/history.html.haml
blob: 50ccfdeabd5be8b08df46847f34bf68e3f514d98 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
- wiki_page_title @page, _('History')
- add_page_specific_style 'page_bundles/wiki'

.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
  = wiki_sidebar_toggle_button

  .nav-text
    %h2.wiki-page-title
      = link_to_wiki_page @page
      %span.light
        ·
        = _('History')

.prepend-top-default.gl-mb-3
  .table-holder
    %table.table.wiki-history
      %thead
        %tr
          %th= s_('Wiki|Page version')
          %th= _('Author')
          %th= _('Changes')
          %th= _('Last updated')
      %tbody
        - @page_versions.each do |commit|
          %tr
            %td
              = link_to wiki_page_path(@wiki, @page, version_id: commit.id) do
                = truncate_sha(commit.id)
            %td
              = commit.author_name
            %td
              %span.str-truncated-60
                = link_to wiki_page_path(@wiki, @page, action: :diff, version_id: commit.id), { title: commit.message } do
                  = commit.message
            %td
              = time_ago_with_tooltip(commit.authored_date)
  = paginate @page_versions, theme: 'gitlab'

= render 'shared/wikis/sidebar'