More refactoring
This commit is contained in:
parent
a587c5c08f
commit
a598afb048
|
@ -7,4 +7,4 @@
|
|||
<%= 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>
|
||||
<% end %>
|
||||
<%= render(:partial => 'users/sign_out_form') %>
|
||||
<%= render(:partial => 'users/sign_out') %>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<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 %>
|
||||
<% if user_signed_in? %>
|
||||
<%= render :partial => 'users/steal_form' %>
|
||||
<%= render :partial => 'users/sign_out_form' %>
|
||||
<%= render(:partial => 'hydrants/steal') %>
|
||||
<%= render(:partial => 'users/sign_out') %>
|
||||
<% end %>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<h2>Thank you for adopting this hydrant!</h2>
|
||||
<%= render :partial => 'users/abandon_form' %>
|
||||
<%= render :partial => 'users/sign_out_form' %>
|
||||
<%= render(:partial => 'hydrants/abandon') %>
|
||||
<%= render(:partial => 'users/sign_out') %>
|
||||
|
|
Loading…
Reference in New Issue