Patch #2010 » redmine-r2641-sidebar.patch
| app/controllers/wiki_controller.rb 2009-03-30 00:35:49.000000000 +0200 | ||
|---|---|---|
| 54 | 54 |
return |
| 55 | 55 |
end |
| 56 | 56 |
@editable = editable? |
| 57 |
@sidebar_page = @wiki.find_page('Sidebar')
|
|
| 58 |
@sidebar_content = @sidebar_page.content_for_version() if @sidebar_page |
|
| 57 | 59 |
render :action => 'show' |
| 58 | 60 |
end |
| 59 | 61 |
|
| 60 |
-- app/views/wiki/show.rhtml.orig 2009-03-30 00:33:44.000000000 +0200
|
|
| 62 |
++ app/views/wiki/show.rhtml 2009-03-30 16:47:01.000000000 +0200
|
|
| ... | ... | |
| 54 | 54 |
<% end %> |
| 55 | 55 | |
| 56 | 56 |
<% content_for :sidebar do %> |
| 57 |
<% if @sidebar_content -%> |
|
| 58 |
<%= textilizable @sidebar_content, :text, :attachments => @sidebar_content.page.attachments %> |
|
| 59 |
<% end -%> |
|
| 57 | 60 |
<%= render :partial => 'sidebar' %> |
| 58 | 61 |
<% end %> |
| 59 | 62 | |
- « Previous
- 1
- 2
- 3
- 4
- Next »