From e8e024c042bc02e1493a9d7ea77a8ad8ca95535d Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Wed, 28 Aug 2013 05:14:10 -0700 Subject: [PATCH] Adding CSV show --- app/views/paypal_csvs/show.html.erb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/views/paypal_csvs/show.html.erb diff --git a/app/views/paypal_csvs/show.html.erb b/app/views/paypal_csvs/show.html.erb new file mode 100644 index 0000000..5aa7bb2 --- /dev/null +++ b/app/views/paypal_csvs/show.html.erb @@ -0,0 +1,17 @@ +

PayPal CSV Item Details

+<% @paypal_csv.attributes.except("data","payment_id").each do |attr| %> +

+ <%= attr.first.to_s %>: + <%= @paypal_csv.attributes[attr.first] %> +

+<% end %> + +

+ <% if @paypal_csv.payment.present? %> + <%= link_to "Linked Payment", @paypal_csv.payment %> + <% else %> + Couldn't link automatically. Please create payment manually or adjust the user account and try again to <%= link_to "link email '#{@paypal_csv._from_email_address}' at membership level '#{@paypal_csv._gross.to_i}'", link_paypal_csv_path(@paypal_csv) %>. + <% end %> + +

+<%= link_to "Back", paypal_csvs_path %> \ No newline at end of file