lib/gollum/frontend/app.rb in gollum-1.4.3 vs lib/gollum/frontend/app.rb in gollum-2.0.0
- old
+ new
@@ -45,9 +45,10 @@
get '/edit/*' do
@name = params[:splat].first
wiki = Gollum::Wiki.new(settings.gollum_path, settings.wiki_options)
if page = wiki.page(@name)
@page = page
+ @page.version = wiki.repo.log(wiki.ref, @page.path).first
@content = page.raw_data
mustache :edit
else
mustache :create
end