Defect #5958 » sidebar_empty.diff
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 %> |