More refactoring

This commit is contained in:
Erik Michaels-Ober 2011-03-27 12:17:20 -07:00
parent a587c5c08f
commit a598afb048
6 changed files with 5 additions and 5 deletions

View File

@ -7,4 +7,4 @@
<%= f.submit "Adopt!", :tabindex => 2, :id => "adoption_form_submit" %> <%= f.submit "Adopt!", :tabindex => 2, :id => "adoption_form_submit" %>
<p>By adopting this hydrant, you agree to the <%= link_to "Terms of Service", "#", :tabindex => 3 %>.</p> <p>By adopting this hydrant, you agree to the <%= link_to "Terms of Service", "#", :tabindex => 3 %>.</p>
<% end %> <% end %>
<%= render(:partial => 'users/sign_out_form') %> <%= render(:partial => 'users/sign_out') %>

View File

@ -1,6 +1,6 @@
<h2><%= @hydrant.name ? @hydrant.name.titleize : "This hydrant" %> has been adopted by <%= @hydrant.user.name %></h2> <h2><%= @hydrant.name ? @hydrant.name.titleize : "This hydrant" %> has been adopted by <%= @hydrant.user.name %></h2>
<%= @hydrant.user.organization.blank? ? nil : "<h3>of #{@hydrant.user.organization}</h3>".html_safe %> <%= @hydrant.user.organization.blank? ? nil : "<h3>of #{@hydrant.user.organization}</h3>".html_safe %>
<% if user_signed_in? %> <% if user_signed_in? %>
<%= render :partial => 'users/steal_form' %> <%= render(:partial => 'hydrants/steal') %>
<%= render :partial => 'users/sign_out_form' %> <%= render(:partial => 'users/sign_out') %>
<% end %> <% end %>

View File

@ -1,3 +1,3 @@
<h2>Thank you for adopting this hydrant!</h2> <h2>Thank you for adopting this hydrant!</h2>
<%= render :partial => 'users/abandon_form' %> <%= render(:partial => 'hydrants/abandon') %>
<%= render :partial => 'users/sign_out_form' %> <%= render(:partial => 'users/sign_out') %>