Sha256: ab1674cc65064f810326ff0b0b6418d41c9e995fe48d207b2041f2600791b1db

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::Orders::Show::Adjustments::Index::Adjustable::SpreeShipment::Component < SolidusAdmin::Orders::Show::Adjustments::Index::Adjustable::Component
  def caption
    "#{t('spree.shipment')} ##{adjustable.number}"
  end

  def detail
    link_to(
      adjustable.shipping_method.name,
      spree.edit_admin_shipping_method_path(adjustable.shipping_method),
      class: "body-link"
    )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_shipment/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_shipment/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/orders/show/adjustments/index/adjustable/spree_shipment/component.rb