User: <%= link_to @payment.user.name_with_payee_and_member_level, @payment.user unless @payment.user.blank? %>

Paid for month beginning: <%= @payment.date %>

Amount: <%= @payment.amount %>

Last Modified by: <% user = @users.find{|u| u.id == @payment.created_by} %> <% if user.blank? %> n/a <% else %> <%= link_to user.name, user %> <% end %>

Created date: <%= @payment.created_at %>

Updated date: <%= @payment.updated_at %>

<% if @payment.ipn.present? %>

<%= link_to "Paid via PayPal", @payment.ipn %>

<% end %> <%= link_to 'Edit', edit_payment_path(@payment) %> | <%= link_to 'Destroy', @payment, :confirm => 'Are you sure you want to destroy this payment?', :method => :delete if can? :destroy, @payment %> | <%= link_to 'Back', payments_path %>