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

35 lines
942 B
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
- page_title "History", @page.title.capitalize, "Wiki"
= render "header_title"
2014-09-02 18:07:02 +05:30
= render 'nav'
2015-09-25 12:07:36 +05:30
.gray-content-block
%h3.page-title
%span.light History for
= link_to @page.title, namespace_project_wiki_path(@project.namespace, @project, @page)
2014-09-02 18:07:02 +05:30
%table.table
%thead
%tr
%th Page version
%th Author
%th Commit Message
%th Last updated
%th Format
%tbody
2015-04-26 12:48:37 +05:30
- @page.versions.each_with_index do |version, index|
2014-09-02 18:07:02 +05:30
- commit = version
%tr
%td
2015-04-26 12:48:37 +05:30
= link_to project_wiki_path_with_version(@project, @page,
commit.id, index == 0) do
= truncate_sha(commit.id)
2014-09-02 18:07:02 +05:30
%td
2015-04-26 12:48:37 +05:30
= commit.author.name
2014-09-02 18:07:02 +05:30
%td
2015-04-26 12:48:37 +05:30
= commit.message
2014-09-02 18:07:02 +05:30
%td
2015-04-26 12:48:37 +05:30
#{time_ago_with_tooltip(version.authored_date)}
2014-09-02 18:07:02 +05:30
%td
%strong
= @page.page.wiki.page(@page.page.name, commit.id).try(:format)