Sha256: 1b7853b4d005942a8eeda540054bcbee9afbcfb391407f6d3c1c008edf35eb74

Contents?: true

Size: 1.78 KB

Versions: 15

Compression:

Stored size: 1.78 KB

Contents

<fieldset id="risk_analysis">
  <legend><%= "#{Spree.t(:risk_analysis)}: #{Spree.t(:not) unless @order.is_risky?} #{Spree.t(:risky)}" %></legend>
  <table class="table table-condensed table-bordered">
    <thead>
      <th><%= Spree.t('risk')%></th>
      <th><%= Spree.t('status')%></th>
    </thead>
    <tbody id="risk-analysis" data-hook="order_details_adjustments"  class="with-border">
      <tr class="">
        <td>
          <strong><%= Spree.t(:failed_payment_attempts) %>:</strong>
        </td>
        <td>
          <span class="label label-<%= @order.payments.failed.count > 0 ? 'void' : 'complete' %>">
            <%= link_to "#{Spree.t 'payments_count', count: @order.payments.failed.count, default: pluralize(@order.payments.failed.count, Spree.t(:payment))}", spree.admin_order_payments_path(@order) %>
          </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= Spree.t(:avs_response) %>:</strong></td>
        <td>
          <span class="label label-<%= latest_payment.is_avs_risky? ? 'void' : 'complete' %>">
            <% if latest_payment.is_avs_risky? %>
              <%= "#{Spree.t(:error)}: #{avs_response_code[latest_payment.avs_response]}" %>
            <% else %>
              <%= Spree.t(:success) %>
            <% end %>
          </span>
        </td>
      </tr>

      <tr>
        <td><strong><%= Spree.t(:cvv_response) %>:</strong></td>
        <td>
          <span class="label label-<%= latest_payment.is_cvv_risky? ? 'void' : 'complete' %>">
            <% if latest_payment.is_cvv_risky? %>
              <%= "#{Spree.t(:error)}: #{cvv_response_code[latest_payment.cvv_response_code]}" %>
            <% else %>
              <%= Spree.t(:success) %>
            <% end %>
          </span>
        </td>
      </tr>
    </tbody>
  </table>
</fieldset>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spree_backend-3.0.10 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.9 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.8 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.7 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.6.1 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.6 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.5 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.4 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.3 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.2 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.1 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.0 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.0.rc4 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.0.rc3 app/views/spree/admin/orders/_risk_analysis.html.erb
spree_backend-3.0.0.rc1 app/views/spree/admin/orders/_risk_analysis.html.erb