debian-mirror-gitlab/app/views/shared/wikis/history.html.haml

39 lines
1.1 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- wiki_page_title @page, _('History')
2017-08-17 22:00:37 +05:30
2019-12-04 20:38:33 +05:30
.wiki-page-header.top-area.has-sidebar-toggle.flex-column.flex-lg-row
2020-07-28 23:09:34 +05:30
= wiki_sidebar_toggle_button
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
.nav-text
%h2.wiki-page-title
2020-07-28 23:09:34 +05:30
= link_to_wiki_page @page
2017-09-10 17:25:29 +05:30
%span.light
·
2020-07-28 23:09:34 +05:30
= _('History')
2016-04-02 18:10:28 +05:30
2020-07-28 23:09:34 +05:30
.prepend-top-default.gl-mb-3
.table-holder
%table.table.wiki-history
%thead
2015-11-26 14:37:03 +05:30
%tr
2020-07-28 23:09:34 +05:30
%th= s_('Wiki|Page version')
%th= _('Author')
%th= _('Changes')
%th= _('Last updated')
%tbody
- @page_versions.each do |commit|
%tr
%td
= link_to wiki_page_path(@wiki, @page, version_id: commit.id) do
= truncate_sha(commit.id)
%td
= commit.author_name
%td
%span.str-truncated-60
= link_to wiki_page_path(@wiki, @page, action: :diff, version_id: commit.id), { title: commit.message } do
= commit.message
%td
= time_ago_with_tooltip(commit.authored_date)
= paginate @page_versions, theme: 'gitlab'
2017-08-17 22:00:37 +05:30
2020-06-23 00:09:42 +05:30
= render 'shared/wikis/sidebar'