Sha256: 82dc4e91bc21b4c7d36957c7d52f71a2e53248a624c934c09d2f3c440e510cd5

Contents?: true

Size: 688 Bytes

Versions: 5

Compression:

Stored size: 688 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(Spree.t(event), fire_admin_order_url(@order, :e => event),
                                    :method => :put,
                                    :icon => "icon-#{event}",
                                    :data => { :confirm => Spree.t(:order_sure_want_to, :event => Spree.t(event)) })
          end
        end
        links.join('&nbsp;').html_safe
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_backend-2.0.3 app/helpers/spree/admin/orders_helper.rb
spree_backend-2.0.2 app/helpers/spree/admin/orders_helper.rb
spree_backend-2.0.1 app/helpers/spree/admin/orders_helper.rb
spree_backend-2.0.0 app/helpers/spree/admin/orders_helper.rb
spree_backend-2.0.0.rc1 app/helpers/spree/admin/orders_helper.rb