redmine-r1928-sidebar.patch

Christian Zuckschwerdt, 2008-10-08 22:37

Download (888 Bytes)

View differences:

app/controllers/wiki_controller.rb (Arbeitskopie)
53 53
      return
54 54
    end
55 55
	@editable = editable?
56
    @sidebar_page = @wiki.find_page('Sidebar')
57
    @sidebar_content = @sidebar_page.content_for_version() if @sidebar_page
56 58
    render :action => 'show'
57 59
  end
58 60
  
app/views/wiki/show.rhtml (Arbeitskopie)
53 53
<% end %>
54 54

  
55 55
<% content_for :sidebar do %>
56
  <% if @sidebar_content -%>
57
  <%= render(:partial => "wiki/content", :locals => {:content => @sidebar_content}) %>
58
  <% end -%>
56 59
  <%= render :partial => 'sidebar' %>
57 60
<% end %>
58 61