2013-03-18 16:43:14 -04:00
|
|
|
= render 'wikis/nav'
|
2012-08-09 00:34:29 -04:00
|
|
|
%h3.page_title
|
2013-03-18 16:43:14 -04:00
|
|
|
%span.light History for
|
2013-03-03 22:43:52 -05:00
|
|
|
= @wiki.title.titleize
|
|
|
|
= render partial: 'main_links'
|
2012-07-25 15:08:47 -04:00
|
|
|
%br
|
2012-09-03 14:53:16 -04:00
|
|
|
%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
|
2013-03-03 22:43:52 -05:00
|
|
|
- @wiki.versions.each do |version|
|
|
|
|
- commit = CommitDecorator.new(version)
|
2012-02-19 14:52:05 -05:00
|
|
|
%tr
|
2012-02-19 14:56:18 -05:00
|
|
|
%td
|
2013-03-03 22:43:52 -05:00
|
|
|
= link_to project_wiki_path(@project, @wiki, version_id: commit.id) do
|
|
|
|
= commit.short_id
|
|
|
|
%td= commit.author_link avatar: true, size: 24
|
|
|
|
%td
|
|
|
|
= commit.title
|
2013-01-11 14:20:11 -05:00
|
|
|
%td
|
2013-03-03 22:43:52 -05:00
|
|
|
= time_ago_in_words(version.date)
|
|
|
|
ago
|
|
|
|
%td
|
|
|
|
%strong
|
|
|
|
= @wiki.page.wiki.page(@wiki.page.name, commit.id).try(:format)
|