Skip to content
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.

Commit

Permalink
The layout no longer renders the right_column if there is no content …
Browse files Browse the repository at this point in the history
…for it, and instead makes the main_content area fill all 12 grid columns
  • Loading branch information
dipth committed Sep 5, 2011
1 parent 8c1a10d commit 34c28e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
</div>
<div class="grid_12" id="main_content_container">
<%= yield :above_content %>
<div class="grid_9 alpha" id="main_content"><%= yield %></div>
<div class="grid_3 omega right_column" id="right_column"><%= yield :right_column %></div>
<div class="<%= content_for?(:right_column) ? "grid_9 alpha" : "grid_12 alpha omega" %>" id="main_content"><%= yield %></div>
<% if content_for?(:right_column) %>
<div class="grid_3 omega right_column" id="right_column"><%= yield :right_column %></div>
<% end %>
<%= yield :below_content %>
</div>
</div>
Expand Down

0 comments on commit 34c28e0

Please sign in to comment.