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
|
2013-03-03 22:43:52 -05:00
|
|
|
= @wiki.title.titleize
|
2013-06-22 08:04:49 -04:00
|
|
|
= render '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|
|
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
|
2013-03-03 22:43:52 -05:00
|
|
|
= link_to project_wiki_path(@project, @wiki, version_id: commit.id) do
|
|
|
|
= 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-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)
|