Implement simple history.

This commit is contained in:
Tom Preston-Werner
2010-08-02 18:15:41 -06:00
parent 17278fcf09
commit e4fa888c38
7 changed files with 148 additions and 19 deletions
-12
View File
@@ -37,18 +37,6 @@ module Precious
@footer ||= @page.footer
@footer.format.to_s
end
def versions
i = @page.versions.size + 1
@page.versions.map do |v|
i -= 1
{ :id => v.id,
:id7 => v.id[0..6],
:num => i,
:selected => @page.version.id == v.id,
:author => v.author.name }
end
end
end
end
end