% content_for :page_title do %> Log Entries <% end %>
Source | Date | Details | |
---|---|---|---|
<%= log_entry.source_type %> | <%= log_entry.created_at %> | <% if log_entry.details.present? %> <% object = YAML.load(log_entry.details) %> <% if object.kind_of?(ActiveMerchant::Billing::Response) %> <%= render :partial => 'active_merchant_response', :locals => { :response => object, :index => index } %> <% else %> <% object.inspect %> <% end %> <% else %> unavailable <% end %> | <%= link_to("View Payment", admin_order_payments_path(log_entry.source.order)) if log_entry.source.kind_of?(Spree::Payment) %> |