2013-03-18 21:43:14 +01:00
|
|
|
= render 'wikis/nav'
|
2012-08-09 06:34:29 +02:00
|
|
|
%h3.page_title
|
2013-03-18 21:43:14 +01:00
|
|
|
%span.light History for
|
2013-03-04 04:43:52 +01:00
|
|
|
= @wiki.title.titleize
|
|
|
|
= render partial: 'main_links'
|
2012-07-25 21:08:47 +02:00
|
|
|
%br
|
2012-09-03 20:53:16 +02:00
|
|
|
%table
|
2012-02-19 20:52:05 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-01-11 20:20:11 +01:00
|
|
|
%th Page version
|
2013-03-04 04:43:52 +01:00
|
|
|
%th Author
|
|
|
|
%th Commit Message
|
2013-01-11 20:20:11 +01:00
|
|
|
%th Last updated
|
2013-03-04 04:43:52 +01:00
|
|
|
%th Format
|
2012-02-19 20:52:05 +01:00
|
|
|
%tbody
|
2013-03-04 04:43:52 +01:00
|
|
|
- @wiki.versions.each do |version|
|
2013-03-31 22:47:26 +02:00
|
|
|
- commit = version
|
2012-02-19 20:52:05 +01:00
|
|
|
%tr
|
2012-02-19 20:56:18 +01:00
|
|
|
%td
|
2013-03-04 04:43:52 +01:00
|
|
|
= link_to project_wiki_path(@project, @wiki, version_id: commit.id) do
|
|
|
|
= commit.short_id
|
2013-03-31 22:47:26 +02:00
|
|
|
%td
|
|
|
|
= commit_author_link(commit, avatar: true, size: 24)
|
2013-03-04 04:43:52 +01:00
|
|
|
%td
|
|
|
|
= commit.title
|
2013-01-11 20:20:11 +01:00
|
|
|
%td
|
2013-03-04 04:43:52 +01:00
|
|
|
= time_ago_in_words(version.date)
|
|
|
|
ago
|
|
|
|
%td
|
|
|
|
%strong
|
|
|
|
= @wiki.page.wiki.page(@wiki.page.name, commit.id).try(:format)
|