Commit 38a7309d

mo k <mo@mokhan.ca>
2012-09-21 04:04:19
fix header on the new/edit tutorial page.
1 parent 55db410
Changed files (2)
app/views/tutorials/edit.html.erb
@@ -1,6 +1,7 @@
-<h1>Editing tutorial</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @tutorial %> |
-<%= link_to 'Back', tutorials_path %>
+<% provide(:title, "Edit tutorial") -%>
+<% content_for :page_header do -%>
+  <h1>Editing tutorial</h1>
+<% end -%>
+<div class="row">
+    <%= render 'form' %>
+</div>
app/views/tutorials/new.html.erb
@@ -1,7 +1,7 @@
 <% provide(:title, "Share a tutorial") -%>
-<div class="page-header">
+<% content_for :page_header do -%>
   <h1>Share a new tutorial</h1>
-</div>
+<% end -%>
 <div class="row">
     <%= render 'form' %>
 </div>