app/views/layouts/application.html.erb in iqvoc-4.0.2 vs app/views/layouts/application.html.erb in iqvoc-4.0.3
- old
+ new
@@ -17,19 +17,21 @@
<body>
<%= render 'layouts/navigation' %>
<div class="container">
<div class="row">
- <div class="span9" id="content">
+ <div class="<%= content_for?(:sidebar) ? "span9" : "span12" %>" id="content">
<%= yield :page_header %>
<% flash.each do |type, msg| %>
<%= alert(type) { msg } %>
<% end %>
<%= yield %>
</div>
+ <% if content_for?(:sidebar) %>
<div class="span3" id="sidebar">
<%= yield :sidebar %>
</div>
+ <% end %>
</div>
</div>
<script>
// load JSON polyfill only if necessary
if(typeof JSON === "undefined") {