Sha256: b5437119c833ddcf8d8d8aa5f85545d804a914fb9d90e77df72983e081a4c275

Contents?: true

Size: 670 Bytes

Versions: 9

Compression:

Stored size: 670 Bytes

Contents

module Spree
  module Admin
    module OrdersHelper
      # Renders all the extension partials that may have been specified in the extensions
      def event_links
        links = []
        @order_events.sort.each do |event|
          if @order.send("can_#{event}?")
            links << button_link_to(t(event), fire_admin_order_url(@order, :e => event),
                                    :method => :put,
                                    :icon => "icon-#{event}",
                                    :data => { :confirm => t(:order_sure_want_to, :event => t(event)) })
          end
        end
        links.join('&nbsp;').html_safe
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/helpers/spree/admin/orders_helper.rb
spree_core-1.3.4 app/helpers/spree/admin/orders_helper.rb
spree_core-1.3.3 app/helpers/spree/admin/orders_helper.rb
spree_core-1.3.2 app/helpers/spree/admin/orders_helper.rb
spree_core-1.3.1 app/helpers/spree/admin/orders_helper.rb
spree_core-1.3.0 app/helpers/spree/admin/orders_helper.rb
spree_core-1.3.0.rc2 app/helpers/spree/admin/orders_helper.rb
dup_spree_core-1.3.0.rc1 app/helpers/spree/admin/orders_helper.rb
spree_core-1.3.0.rc1 app/helpers/spree/admin/orders_helper.rb