adopt-a-hydrant/app/views/users/profile.html.erb

10 lines
452 B
Plaintext
Raw Normal View History

<h2><%= @hydrant.name ? @hydrant.name.titleize : "This hydrant" %> has been adopted by <%= @hydrant.user.name %></h2>
2011-03-18 04:21:37 +00:00
<%= @hydrant.user.organization.blank? ? nil : "<h3>of #{@hydrant.user.organization}</h3>".html_safe %>
<% if user_signed_in? %>
2011-03-27 19:44:15 +00:00
<%= render(:partial => 'users/edit_profile') %>
2011-03-27 19:17:20 +00:00
<%= render(:partial => 'hydrants/steal') %>
2011-04-04 04:18:59 +00:00
<%= render(:partial => 'sessions/sign_out') %>
<% else %>
<%= render(:partial => 'sessions/sign_in') %>
<% end %>