Permalink
Browse files

Refactored views to simplify HTML

  • Loading branch information...
1 parent 200968d commit 1bb56a7196d93ed87c74a537148bcdbd9e6271c0 @jcasimir jcasimir committed Apr 22, 2011
@@ -1,8 +1,8 @@
-<% title "Edit Company" %>
+<% title "Edit #{@company.name}" %>
<%= render 'form' %>
-<p>
- <%= link_to "Show", @company %> |
- <%= link_to "View All", companies_path %>
-</p>
+<ul class="actions">
+ <li><%= link_to "Show", @company %></li>
+ <li><%= link_to "View All", companies_path %></li>
+</ul>
@@ -1,4 +1,4 @@
-<% title "Edit Email Address" %>
+<% title "Edit Email Address for #{@email_address.contact}" %>
<%= render 'form' %>
@@ -1,4 +1,4 @@
-<% title "New Email Address" %>
+<% title "New Email Address for #{@email_address.contact}" %>
<%= render 'form' %>
@@ -1,8 +1,8 @@
-<% title "Edit Person" %>
+<% title "Edit #{@person.last_name}, #{@person.first_name}" %>
<%= render 'form' %>
-<p>
- <%= link_to "Show", @person %> |
- <%= link_to "View All", people_path %>
+<ul class="actions">
+ <li><%= link_to "Show", @person %></li>
+ <li><%= link_to "View All", people_path %></li>
</p>
@@ -1,4 +1,4 @@
-<% title "Edit Phone Number" %>
+<% title "Edit Phone Number for #{@phone_number.contact}" %>
<%= render 'form' %>
@@ -1,4 +1,4 @@
-<% title "New Phone Number" %>
+<% title "New Phone Number for #{@phone_number.contact}" %>
<%= render 'form' %>

0 comments on commit 1bb56a7

Please sign in to comment.