2018-12-23 12:14:25 +05:30
|
|
|
- page_title _("History"), @page.human_title, _("Wiki")
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.wiki-page-header.has-sidebar-toggle
|
|
|
|
%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
|
2018-12-23 12:14:25 +05:30
|
|
|
= link_to @page.human_title, project_wiki_path(@project, @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
|
|
|
|
= link_to project_wiki_path_with_version(@project, @page,
|
|
|
|
commit.id, index == 0) do
|
|
|
|
= 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
|
|
|
|
|
|
|
= render 'sidebar'
|