2020-07-02 15:09:08 +00:00
|
|
|
- wiki_page_title @page, _('History')
|
2020-10-20 06:09:03 +00:00
|
|
|
- add_page_specific_style 'page_bundles/wiki'
|
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
|
|
|
|
2021-01-05 12:10:36 +00:00
|
|
|
%h3.page-title
|
|
|
|
= link_to_wiki_page @page
|
|
|
|
%span.light
|
|
|
|
·
|
|
|
|
= _('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
|
2021-05-14 12:10:58 +00:00
|
|
|
- @commits.each do |commit|
|
2020-07-02 15:09:08 +00:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= link_to wiki_page_path(@wiki, @page, version_id: commit.id) do
|
|
|
|
= truncate_sha(commit.id)
|
|
|
|
%td
|
|
|
|
= commit.author_name
|
|
|
|
%td
|
2021-04-01 15:08:54 +00:00
|
|
|
.commit-content
|
2020-07-02 15:09:08 +00:00
|
|
|
= 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)
|
2021-05-14 12:10:58 +00:00
|
|
|
= paginate @commits, theme: 'gitlab'
|
2016-11-14 21:33:21 +00:00
|
|
|
|
2020-06-11 15:08:36 +00:00
|
|
|
= render 'shared/wikis/sidebar'
|