Sha256: 71e54b41b900c5ab770cb958f0722edfe62b272cbaa4b972616be8cc14d83541

Contents?: true

Size: 842 Bytes

Versions: 21

Compression:

Stored size: 842 Bytes

Contents

module Spree
  module Admin
    module OrdersHelper
      # Renders all the txn partials that may have been specified in the extensions
      def render_txn_partials(order)
        @txn_partials.inject("") do |extras, partial|
          extras += render :partial => partial, :locals => { :payment => order }
        end
      end

      # 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, :confirm => t(:order_sure_want_to, :event => t(event)) })
          end
        end
        links.join('&nbsp;').html_safe
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
spree_core-1.1.6 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.5 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.7 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.4 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.3 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.6 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.2 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.2.rc1 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.1 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.0 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.4 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.0.rc2 app/helpers/spree/admin/orders_helper.rb
spree_core-1.1.0.rc1 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.3 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.2 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.1 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.0 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.0.rc4 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.0.rc3 app/helpers/spree/admin/orders_helper.rb
spree_core-1.0.0.rc2 app/helpers/spree/admin/orders_helper.rb