Patch #2010 » redmine-r2641-sidebar.patch
| app/controllers/wiki_controller.rb 2009-03-30 00:35:49.000000000 +0200 | ||
|---|---|---|
|
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
|
||
| ... | ... | |
|
<% end %>
|
||
|
<% content_for :sidebar do %>
|
||
|
<% if @sidebar_content -%>
|
||
|
<%= textilizable @sidebar_content, :text, :attachments => @sidebar_content.page.attachments %>
|
||
|
<% end -%>
|
||
|
<%= render :partial => 'sidebar' %>
|
||
|
<% end %>
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »