Commit 14615aabcc664a85961eaa3ce9f8f45b2b8acd21
1 parent
271966ba
Exists in
master
and in
22 other branches
ActionItem837: identifying screens without blocks
In the case where no blocks are presented, wrap the content with a div that identifies that fact. This way designers can add special formatting for those screens that should not applied to regular screens (those that do have the blocks).
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/views/layouts/application.rhtml
@@ -144,7 +144,9 @@ | @@ -144,7 +144,9 @@ | ||
144 | <% if uses_design_blocks? %> | 144 | <% if uses_design_blocks? %> |
145 | <%= display_boxes(@controller.boxes_holder, yield) %> | 145 | <%= display_boxes(@controller.boxes_holder, yield) %> |
146 | <% else %> | 146 | <% else %> |
147 | - <%= yield %> | 147 | + <div class='no-boxes'> |
148 | + <%= yield %> | ||
149 | + </div> | ||
148 | <% end %> | 150 | <% end %> |
149 | <% end %> | 151 | <% end %> |
150 | 152 |