Sha256: 77e3bdc788b817b8096a913c8a2c23bebf0bcac5446bd93e4a903211bf99ffbc

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

<%= render :partial => 'spree/admin/shared/order_tabs', locals: { current: 'Payments' }%>

<% content_for :page_title do %>
  <i class="icon-arrow-right"></i>
  <%= I18n.t(:one, scope: "activerecord.models.spree/payment") %>
  <i class="icon-arrow-right"></i>
  <%= Spree.t(:log_entries) %>
<% end %>

<% content_for :page_actions do %>
  <%= button_link_to Spree.t(:logs), spree.admin_order_payment_log_entries_url(@order, @payment), icon: 'file.svg' %>
<% end %>

<table class='table table-striped' id='listing_log_entries'>
  <% @log_entries.each do |entry| %>
    <thead>
      <tr class="log_entry <%= entry.success_parsed_details? ? 'success' : 'fail' %>">
        <td colspan='2'>
          <i class='icon icon-<%= entry.success_parsed_details? ? 'ok-circle' : 'remove-sign' %>'></i> <%= pretty_time(entry.created_at) %>
        </td>
      </tr>
    </thead>
    <tbody>
      <%= render "spree/admin/log_entries/#{@payment.payment_method.method_type.gsub(' ', '').underscore}", entry: entry rescue '' %>
    </tbody>
  <% end %>
</table>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
spree_paypal_checkout-0.0.2 app/views/spree/admin/log_entries/index.html.erb
spree_paypal_api_checkout-0.1.5 app/views/spree/admin/log_entries/index.html.erb
spree_paypal_api_checkout-0.1.4 app/views/spree/admin/log_entries/index.html.erb