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

43 lines
1.2 KiB
Text
Raw Normal View History

- page_title _("History"), @page.human_title, _("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 04:17:44 -05:00
.nav-text
%h2.wiki-page-title
= link_to @page.human_title, project_wiki_path(@project, @page)
%span.light
·
2017-09-27 13:13:29 -04:00
= _("History")
.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")
%tbody
- @page_versions.each_with_index do |version, index|
- commit = version
2015-10-19 05:19:45 -04:00
%tr
%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
%td
= commit.message
%td
#{time_ago_with_tooltip(version.authored_date)}
%td
%strong
2017-10-03 12:58:33 -04:00
= version.format
= paginate @page_versions, theme: 'gitlab'
= render 'sidebar'