Welcome to mirror list, hosted at ThFree Co, Russian Federation.

history.html.haml « wikis « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1dcd2cd400b91d799c1e6f6bf1eae17e66f2ac6 (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
- 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

  %h3.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'