Project

General

Profile

Defect #5958 » sidebar_empty.diff

Patch to have no white-space in the sidebar if empty - Henrik Ammer, 2010-07-26 13:40

View differences:

app/views/layouts/base.rhtml (working copy)
49 49
</div>
50 50

  
51 51
<%= tag('div', {:id => 'main', :class => (has_content?(:sidebar) ? '' : 'nosidebar')}, true) %>
52
    <div id="sidebar">        
52
    <div id="sidebar"><% if has_content?(:sidebar) %>
53 53
        <%= yield :sidebar %>
54 54
        <%= call_hook :view_layouts_base_sidebar %>
55
    </div>
55
<% end %></div>
56 56
    
57 57
    <div id="content">
58 58
				<%= render_flash_messages %>
(1-1/3)