diff options
| author | Luc Donnet | 2014-10-10 10:21:54 +0200 |
|---|---|---|
| committer | Luc Donnet | 2014-10-10 10:21:54 +0200 |
| commit | ceda2215d35e1ac2923af62f3f00f2feb214764e (patch) | |
| tree | 1951404af48e750d757ed3cdb47bfc35677e39b4 /app/views/layouts | |
| parent | 5e79dbe396a2e0cebca960b7f540fc14011263b0 (diff) | |
| download | chouette-core-ceda2215d35e1ac2923af62f3f00f2feb214764e.tar.bz2 | |
Fix layout when no sidebar Refs #0029169
Diffstat (limited to 'app/views/layouts')
| -rw-r--r-- | app/views/layouts/application.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 418b90e72..38125e112 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -22,14 +22,14 @@ </div> <div id="middle" class="container"> <div class="row"> - <div class="col-md-9"> + <div class="<%= content_for?(:sidebar) ? 'col-md-9' : 'col-md-12' %>"> <div id="workspace" class="<%= controller_name %> <%= action_name %>"> <%= render partial: "shared/flash_messages", flash: flash %> <%= render partial: "shared/breadcrumb" %> <%= yield %> </div> </div> - <div id="sidebar" class="col-md-3"> + <div id="sidebar" class="<%= content_for?(:sidebar) ? 'col-md-3' : '' %>"> <%= yield :sidebar %> </div> </div> |
