gitlab-org--gitlab-foss/app/views/projects/wikis/history.html.haml

42 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-09-27 17:13:29 +00:00
- page_title _("History"), @page.title.capitalize, _("Wiki")
.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
.nav-text
%h2.wiki-page-title
= link_to @page.title.capitalize, project_wiki_path(@project, @page)
%span.light
·
2017-09-27 17:13:29 +00:00
= _("History")
.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")
%tbody
- @page.versions.each_with_index do |version, index|
- commit = version
2015-10-19 09:19:45 +00:00
%tr
%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)
= render 'sidebar'