--- app/controllers/wiki_controller.rb.orig 2009-03-05 16:18:41.000000000 +0100 +++ app/controllers/wiki_controller.rb 2009-03-30 00:35:49.000000000 +0200 @@ -54,6 +54,8 @@ return end @editable = editable? + @sidebar_page = @wiki.find_page('Sidebar') + @sidebar_content = @sidebar_page.content_for_version() if @sidebar_page render :action => 'show' end --- app/views/wiki/show.rhtml.orig 2009-03-30 00:33:44.000000000 +0200 +++ app/views/wiki/show.rhtml 2009-03-30 16:47:01.000000000 +0200 @@ -54,6 +54,9 @@ <% end %> <% content_for :sidebar do %> + <% if @sidebar_content -%> + <%= textilizable @sidebar_content, :text, :attachments => @sidebar_content.page.attachments %> + <% end -%> <%= render :partial => 'sidebar' %> <% end %>