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')
2021-01-03 14:25:43 +05:30
- add_page_specific_style 'page_bundles/wiki'
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
2022-07-23 23:45:48 +05:30
%h1.page-title.gl-font-size-h-display
2021-03-08 18:12:59 +05:30
= link_to_wiki_page @page
%span.light
·
= _('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
2021-06-08 01:23:25 +05:30
- @commits.each do |commit|
2020-07-28 23:09:34 +05:30
%tr
%td
= link_to wiki_page_path(@wiki, @page, version_id: commit.id) do
= truncate_sha(commit.id)
%td
= commit.author_name
%td
2021-04-29 21:17:54 +05:30
.commit-content
2020-07-28 23:09:34 +05:30
= 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)
2021-06-08 01:23:25 +05:30
= paginate @commits, theme: 'gitlab'
2017-08-17 22:00:37 +05:30
2020-06-23 00:09:42 +05:30
= render 'shared/wikis/sidebar'