spree/spree — pull request #1361 by krainboltgreene (2012-04-06 16:35:40+00:00)
Title: Cleaning Up Layouts

For the sake of segmentation I've:

- Made partials for the body header, footer, sidebar, navbar, and main navbar
- Removed a lot of needless whitespace
- Removed a few sigils that weren't needed
- Cleaned up an ERB if condition that really should be a ternary

Over all, deleted twice as much code as added, but added 3 extra partials.

End result:

``` erb
<% app/views/layouts/spree_application.html.erb %>

<%= render :partial => 'spree/shared/head' %>

<%= render :partial => 'spree/shared/header' %>

<%= render :partial => 'spree/shared/sidebar' if content_for? :sidebar %>

" data-hook>
<%= breadcrumbs(@taxon) %>
<%= flash_messages %>
<%= yield %>

<%= render :partial => 'spree/shared/footer' %>

<%= render :partial => 'spree/shared/google_analytics' %>

```