2017-09-27 17:13:29 +00:00
|
|
|
- page_title _("History"), @page.title.capitalize, _("Wiki")
|
2016-11-14 21:33:21 +00:00
|
|
|
|
2017-06-12 11:47:46 +00: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 09:17:44 +00:00
|
|
|
|
2017-06-12 11:47:46 +00:00
|
|
|
.nav-text
|
|
|
|
%h2.wiki-page-title
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to @page.title.capitalize, project_wiki_path(@project, @page)
|
2017-06-12 11:47:46 +00:00
|
|
|
%span.light
|
|
|
|
·
|
2017-09-27 17:13:29 +00:00
|
|
|
= _("History")
|
2016-02-07 16:57:28 +00:00
|
|
|
|
2017-06-12 11:47:46 +00:00
|
|
|
.table-holder
|
|
|
|
%table.table
|
|
|
|
%thead
|
|
|
|
%tr
|
2017-09-27 17:13:29 +00:00
|
|
|
%th= s_("Wiki|Page version")
|
|
|
|
%th= _("Author")
|
|
|
|
%th= _("Commit Message")
|
|
|
|
%th= _("Last updated")
|
|
|
|
%th= _("Format")
|
2017-06-12 11:47:46 +00:00
|
|
|
%tbody
|
|
|
|
- @page.versions.each_with_index do |version, index|
|
|
|
|
- commit = version
|
2015-10-19 09:19:45 +00:00
|
|
|
%tr
|
2017-06-12 11:47:46 +00:00
|
|
|
%td
|
|
|
|
= link_to project_wiki_path_with_version(@project, @page,
|
|
|
|
commit.id, index == 0) do
|
|
|
|
= truncate_sha(commit.id)
|
|
|
|
%td
|
|
|
|
= commit.author.name
|
|
|
|
%td
|
|
|
|
= commit.message
|
|
|
|
%td
|
|
|
|
#{time_ago_with_tooltip(version.authored_date)}
|
|
|
|
%td
|
|
|
|
%strong
|
|
|
|
= @page.page.wiki.page(@page.page.name, commit.id).try(:format)
|
2016-11-14 21:33:21 +00:00
|
|
|
|
|
|
|
= render 'sidebar'
|