2013-06-23 12:47:22 -04:00
|
|
|
= render 'nav'
|
2013-07-13 01:45:48 -04:00
|
|
|
%h3.page-title
|
2013-03-18 16:43:14 -04:00
|
|
|
%span.light History for
|
2014-04-09 01:14:16 -04:00
|
|
|
= link_to @page.title, project_wiki_path(@project, @page)
|
2013-08-16 09:59:26 -04:00
|
|
|
|
2013-12-29 11:13:16 -05:00
|
|
|
%table.table
|
2012-02-19 14:52:05 -05:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-01-11 14:20:11 -05:00
|
|
|
%th Page version
|
2013-03-03 22:43:52 -05:00
|
|
|
%th Author
|
|
|
|
%th Commit Message
|
2013-01-11 14:20:11 -05:00
|
|
|
%th Last updated
|
2013-03-03 22:43:52 -05:00
|
|
|
%th Format
|
2012-02-19 14:52:05 -05:00
|
|
|
%tbody
|
2014-04-09 07:35:01 -04:00
|
|
|
- @page.versions.each do |version|
|
2013-03-31 16:47:26 -04:00
|
|
|
- commit = version
|
2012-02-19 14:52:05 -05:00
|
|
|
%tr
|
2012-02-19 14:56:18 -05:00
|
|
|
%td
|
2014-04-09 07:35:01 -04:00
|
|
|
= link_to project_wiki_path(@project, @page, version_id: commit.id) do
|
2013-03-03 22:43:52 -05:00
|
|
|
= commit.short_id
|
2013-03-31 16:47:26 -04:00
|
|
|
%td
|
|
|
|
= commit_author_link(commit, avatar: true, size: 24)
|
2013-03-03 22:43:52 -05:00
|
|
|
%td
|
|
|
|
= commit.title
|
2013-01-11 14:20:11 -05:00
|
|
|
%td
|
2013-12-30 07:49:22 -05:00
|
|
|
#{time_ago_with_tooltip(version.date)}
|
2013-03-03 22:43:52 -05:00
|
|
|
%td
|
|
|
|
%strong
|
2014-04-09 07:35:01 -04:00
|
|
|
= @page.page.wiki.page(@page.page.name, commit.id).try(:format)
|