<% if can? :read, resource.payments then %>
Recorded Payments:
<% resource.payments.each do |payment| %>
- <%= payment.date %>
<% end %>
<% end %>
<% if resource.payment_method == "Dwolla" %>
Dwolla Payment Link
<% if resource.member_level == "25" %>
Associate Membership ($25/mo):
Subscribe
<% elsif resource.member_level == "50" %>
Basic Membership ($50/mo):
Subscribe
<% elsif resource.member_level == "100" %>
Plus Membership ($100/mo):
Subscribe
<% else %>
Hmm, your membership level doesn't appear to be at $25/50/100...
<% end %>
<% elsif resource.payment_method == "PayPal" %>
PayPal Payment Link
<% if resource.member_level == "25" %>
Associate Membership ($25/mo):
<% elsif resource.member_level == "50" %>
Basic Membership ($50/mo):
<% elsif resource.member_level == "100" %>
Plus Membership ($100/mo):
<% else %>
Hmm, your membership level doesn't appear to be at $25/50/100...
<% end %>
<% elsif resource.payment_method == "BillPay" %>
Bill Pay Info
Have your bank send a monthly check to HeatSync Labs Treasurer, 140 W Main St, Mesa AZ 85201 Electronic or advance payments are appreciated!
<% elsif resource.payment_method == "Check" %>
Check Payment Info
Mail to HeatSync Labs Treasurer, 140 W Main St, Mesa AZ 85201 OR put in the drop safe at the Lab with a deposit slip firmly attached each month. Electronic or advance payments are appreciated!
<% elsif resource.payment_method == "Cash" %>
Put in the drop safe at the Lab with a deposit slip firmly attached each month. Electronic or advance payments are appreciated!
<% else %>
Payment Links
Normally you'd see payment buttons here, but you don't seem to have an electronic payment option selected...
<% end %>
<%= link_to image_tag(resource.gravatar_url), "https://www.gravatar.com", :title => "Adjust your photo at Gravatar.com" %>
Adjust your photo
at Gravatar.com
<%= render :partial => "user", :locals => { :resource => resource, :html => { :method => :put }, :button_label => "Update Profile" } %>
<%= render "devise/shared/links" %>
<%= link_to "Back", :back %>