<% page_title "User Upgrade Status" %> <%= render "users/secondary_links" %>

User Upgrade

<% if @user_upgrade.complete? %> <% if @user_upgrade.is_gift? && CurrentUser.user == @user_upgrade.recipient %>

<%= link_to_user @user_upgrade.purchaser %> has upgraded your account to <%= @user_upgrade.level_string %>. Enjoy your new account!

<% elsif @user_upgrade.is_gift? && CurrentUser.user == @user_upgrade.purchaser %>

<%= link_to_user @user_upgrade.recipient %> is now a <%= @user_upgrade.level_string %> user. Thanks for supporting the site! A receipt has been sent to your email.

<% else %>

You are now a <%= @user_upgrade.level_string %> user. Thanks for supporting the site! A receipt has been sent to your email.

<% end %> <% elsif @user_upgrade.refunded? %>

This purchase has been refunded. A receipt has been sent to your email. It can take up to 5-10 days for the refund to appear on your credit card or bank statement. If it takes longer, please contact your bank for assistance.

<% else %> <%= content_for :html_header do %> <% end %>

This order is still being processed. You will be notified as soon as the order is complete.

<% end %>