2019-02-15 15:39:39 +05:30
|
|
|
- page_title _("History"), @page.human_title, _("Wiki")
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2019-12-04 20:38:33 +05:30
|
|
|
.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
|
2017-09-10 17:25:29 +05:30
|
|
|
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
|
|
|
|
= icon('angle-double-left')
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.nav-text
|
|
|
|
%h2.wiki-page-title
|
2020-06-23 00:09:42 +05:30
|
|
|
= link_to @page.human_title, wiki_page_path(@wiki, @page)
|
2017-09-10 17:25:29 +05:30
|
|
|
%span.light
|
|
|
|
·
|
2018-03-17 18:26:18 +05:30
|
|
|
= _("History")
|
2016-04-02 18:10:28 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.table-holder
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
2018-03-17 18:26:18 +05:30
|
|
|
%th= s_("Wiki|Page version")
|
|
|
|
%th= _("Author")
|
|
|
|
%th= _("Commit Message")
|
|
|
|
%th= _("Last updated")
|
|
|
|
%th= _("Format")
|
2017-09-10 17:25:29 +05:30
|
|
|
%tbody
|
2018-03-17 18:26:18 +05:30
|
|
|
- @page_versions.each_with_index do |version, index|
|
2017-09-10 17:25:29 +05:30
|
|
|
- commit = version
|
2015-11-26 14:37:03 +05:30
|
|
|
%tr
|
2017-09-10 17:25:29 +05:30
|
|
|
%td
|
2020-06-23 00:09:42 +05:30
|
|
|
= link_to wiki_page_path(@wiki, @page, version_id: index == 0 ? nil : commit.id) do
|
2017-09-10 17:25:29 +05:30
|
|
|
= truncate_sha(commit.id)
|
|
|
|
%td
|
2018-03-17 18:26:18 +05:30
|
|
|
= commit.author_name
|
2017-09-10 17:25:29 +05:30
|
|
|
%td
|
|
|
|
= commit.message
|
|
|
|
%td
|
|
|
|
#{time_ago_with_tooltip(version.authored_date)}
|
|
|
|
%td
|
|
|
|
%strong
|
2018-03-17 18:26:18 +05:30
|
|
|
= version.format
|
|
|
|
= paginate @page_versions, theme: 'gitlab'
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
= render 'shared/wikis/sidebar'
|