2015-09-17 10:16:24 +00:00
|
|
|
- page_title "History", @page.title.capitalize, "Wiki"
|
|
|
|
= render "header_title"
|
|
|
|
|
2013-06-23 16:47:22 +00:00
|
|
|
= render 'nav'
|
2015-09-08 08:23:09 +00:00
|
|
|
.gray-content-block
|
|
|
|
%h3.page-title
|
|
|
|
%span.light History for
|
|
|
|
= link_to @page.title, namespace_project_wiki_path(@project.namespace, @project, @page)
|
2013-08-16 13:59:26 +00:00
|
|
|
|
2013-12-29 16:13:16 +00:00
|
|
|
%table.table
|
2012-02-19 19:52:05 +00:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-01-11 19:20:11 +00:00
|
|
|
%th Page version
|
2013-03-04 03:43:52 +00:00
|
|
|
%th Author
|
|
|
|
%th Commit Message
|
2013-01-11 19:20:11 +00:00
|
|
|
%th Last updated
|
2013-03-04 03:43:52 +00:00
|
|
|
%th Format
|
2012-02-19 19:52:05 +00:00
|
|
|
%tbody
|
2015-01-06 08:50:37 +00:00
|
|
|
- @page.versions.each_with_index do |version, index|
|
2013-03-31 20:47:26 +00:00
|
|
|
- commit = version
|
2012-02-19 19:52:05 +00:00
|
|
|
%tr
|
2012-02-19 19:56:18 +00:00
|
|
|
%td
|
2015-01-06 08:50:37 +00:00
|
|
|
= link_to project_wiki_path_with_version(@project, @page,
|
|
|
|
commit.id, index == 0) do
|
2014-10-10 12:39:48 +00:00
|
|
|
= truncate_sha(commit.id)
|
2013-03-31 20:47:26 +00:00
|
|
|
%td
|
2014-09-25 10:56:23 +00:00
|
|
|
= commit.author.name
|
2013-03-04 03:43:52 +00:00
|
|
|
%td
|
2014-09-25 10:56:23 +00:00
|
|
|
= commit.message
|
2013-01-11 19:20:11 +00:00
|
|
|
%td
|
2014-12-03 14:27:31 +00:00
|
|
|
#{time_ago_with_tooltip(version.authored_date)}
|
2013-03-04 03:43:52 +00:00
|
|
|
%td
|
|
|
|
%strong
|
2014-04-09 11:35:01 +00:00
|
|
|
= @page.page.wiki.page(@page.page.name, commit.id).try(:format)
|