2020-07-02 15:09:08 +00:00
|
|
|
- wiki_page_title @page, _('History')
|
2016-11-14 21:33:21 +00:00
|
|
|
|
2019-08-23 10:21:05 +00:00
|
|
|
.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
|
2020-07-02 15:09:08 +00:00
|
|
|
= wiki_sidebar_toggle_button
|
2016-11-15 09:17:44 +00:00
|
|
|
|
2017-06-12 11:47:46 +00:00
|
|
|
.nav-text
|
|
|
|
%h2.wiki-page-title
|
2020-07-02 15:09:08 +00:00
|
|
|
= link_to_wiki_page @page
|
2019-10-31 21:06:28 +00:00
|
|
|
%span.light
|
|
|
|
·
|
2020-07-02 15:09:08 +00:00
|
|
|
= _('History')
|
2016-02-07 16:57:28 +00:00
|
|
|
|
2020-07-02 15:09:08 +00:00
|
|
|
.prepend-top-default.gl-mb-3
|
|
|
|
.table-holder
|
|
|
|
%table.table.wiki-history
|
|
|
|
%thead
|
2015-10-19 09:19:45 +00:00
|
|
|
%tr
|
2020-07-02 15:09:08 +00:00
|
|
|
%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'
|
2016-11-14 21:33:21 +00:00
|
|
|
|
2020-06-11 15:08:36 +00:00
|
|
|
= render 'shared/wikis/sidebar'
|