Commit f2fd0513

mo k <mo@mokhan.ca>
2012-09-21 03:51:45
move page headers up by the social buttons.
1 parent 4f1595b
app/views/categories/show.html.erb
@@ -1,7 +1,7 @@
 <% provide(:title, "#{@category.name} Cakes") -%>
-<div class="page-header">
+<% content_for :page_header do -%>
   <h1>Category <em><%= @category.name %></em></h1>
-</div>
+<% end -%>
 <div class="row">
   <div class="span3">
     <ul class="well nav nav-pills nav-stacked">
app/views/profiles/favorites.html.erb
@@ -1,4 +1,7 @@
 <% provide(:title, "My Favorites") -%>
+<% content_for :page_header do -%>
+  <h1>My Favorites</h1>
+<% end -%>
 <div class="row">
   <div class="span3">
     <div class="thumbnail">
@@ -22,7 +25,6 @@
     </div>
   </div>
   <div class="span9">
-    <h2>My Favorites</h2>
     <ul class="thumbnails">
       <% @creations.each do |creation| %>
         <li><a href="<%= url_for creation %>"><img class="thumbnail" src="<%= creation.image.thumb.url %>" alt="<%= creation.name %>"></a></li>
app/views/profiles/index.html.erb
@@ -1,7 +1,7 @@
 <% provide(:title, pluralize(@profiles.length, "artist")) -%>
-<div class="page-header">
+<% content_for :page_header do -%>
   <h1><%= pluralize @profiles.count, "artist" %></h1>
-</div>
+<% end -%>
 <div class="row">
   <div class="span12">
     <ul class="thumbnails">
app/views/profiles/show.html.erb
@@ -1,12 +1,7 @@
 <% provide(:title, "#{@profile.name}") -%>
-<div class="row">
-  <div class="span12">
-    <h1>
-      <%= @profile.name %>
-      <small>A member since <%= @profile.created_at.to_s :foomat %>, with <%= @profile.creations.length %> creations.</small>
-    </h1>
-  </div>
-</div>
+<% content_for :page_header do -%>
+    <h1><%= @profile.name %> <small>A member since <%= @profile.created_at.to_s :foomat %>, with <%= @profile.creations.length %> creations.</small> </h1>
+<% end -%>
 <div class="row">
   <div class="span3">
     <div class="thumbnail">
app/views/registrations/edit.html.erb
@@ -4,6 +4,9 @@
 $(function(){ DeviseUsers.Edit.initialize(jQuery); });
 </script>
 <% end %>
+<% content_for :page_header do -%>
+  <h1>Settings</h1>
+<% end -%>
   <div class="row">
     <div class="span3">
       <div class="thumbnail">
@@ -34,7 +37,6 @@ $(function(){ DeviseUsers.Edit.initialize(jQuery); });
       <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete, :class => "btn btn-danger" %></p>
     </div>
     <div class="span9">
-      <h1>Settings</h1>
       <p> If you prefer not to change your password, then just leave it blank.  </p>
       <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class=> "form-horizontal" }) do |f| %>
         <fieldset>
app/views/search/index.html.erb
@@ -1,10 +1,7 @@
 <% provide(:title, "#{@search}") -%>
-<div class="row">
-  <div class="span12">
-    <h1>Search Results for <em><%= @search %></em></h1>
-    <hr />
-  </div>
-</div>
+<% content_for :page_header do -%>
+  <h1>Search Results for <em><%= @search %></em></h1>
+<% end -%>
 <h3>Creations</h3>
 <hr />
 <%= render "shared/a_12_column_gallery" %>