2018-11-27 01:22:16 -05:00
|
|
|
- page_title _("History"), @page.human_title, _("Wiki")
|
2016-11-14 16:33:21 -05:00
|
|
|
|
2017-06-12 07:47:46 -04:00
|
|
|
.wiki-page-header.has-sidebar-toggle
|
|
|
|
%button.btn.btn-default.sidebar-toggle.js-sidebar-wiki-toggle{ role: "button", type: "button" }
|
|
|
|
= icon('angle-double-left')
|
2016-11-15 04:17:44 -05:00
|
|
|
|
2017-06-12 07:47:46 -04:00
|
|
|
.nav-text
|
|
|
|
%h2.wiki-page-title
|
2018-11-27 01:22:16 -05:00
|
|
|
= link_to @page.human_title, project_wiki_path(@project, @page)
|
2017-06-12 07:47:46 -04:00
|
|
|
%span.light
|
|
|
|
·
|
2017-09-27 13:13:29 -04:00
|
|
|
= _("History")
|
2016-02-07 11:57:28 -05:00
|
|
|
|
2017-06-12 07:47:46 -04:00
|
|
|
.table-holder
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
2017-09-27 13:13:29 -04:00
|
|
|
%th= s_("Wiki|Page version")
|
|
|
|
%th= _("Author")
|
|
|
|
%th= _("Commit Message")
|
|
|
|
%th= _("Last updated")
|
|
|
|
%th= _("Format")
|
2017-06-12 07:47:46 -04:00
|
|
|
%tbody
|
2017-11-17 06:48:32 -05:00
|
|
|
- @page_versions.each_with_index do |version, index|
|
2017-06-12 07:47:46 -04:00
|
|
|
- commit = version
|
2015-10-19 05:19:45 -04:00
|
|
|
%tr
|
2017-06-12 07:47:46 -04:00
|
|
|
%td
|
|
|
|
= link_to project_wiki_path_with_version(@project, @page,
|
|
|
|
commit.id, index == 0) do
|
|
|
|
= truncate_sha(commit.id)
|
|
|
|
%td
|
2017-10-03 12:58:33 -04:00
|
|
|
= commit.author_name
|
2017-06-12 07:47:46 -04:00
|
|
|
%td
|
|
|
|
= commit.message
|
|
|
|
%td
|
|
|
|
#{time_ago_with_tooltip(version.authored_date)}
|
|
|
|
%td
|
|
|
|
%strong
|
2017-10-03 12:58:33 -04:00
|
|
|
= version.format
|
2017-11-17 06:48:32 -05:00
|
|
|
= paginate @page_versions, theme: 'gitlab'
|
2016-11-14 16:33:21 -05:00
|
|
|
|
|
|
|
= render 'sidebar'
|