Sha256: f29ae743edb5a47aa7f7b624abe292b0006725309b8ee03db1dfcda671843aaf

Contents?: true

Size: 736 Bytes

Versions: 38

Compression:

Stored size: 736 Bytes

Contents

module Admin::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

Version data entries

38 entries across 38 versions & 6 rubygems

Version Path
spree_core-0.70.7 app/helpers/admin/orders_helper.rb
spree_core-0.70.6 app/helpers/admin/orders_helper.rb
apispree_core-0.0.0 app/helpers/admin/orders_helper.rb
My-Commerce_core-1.1.0 app/helpers/admin/orders_helper.rb
My-Commerce_core-1.0.0 app/helpers/admin/orders_helper.rb
MyCommerceapi-1.0.0 core/app/helpers/admin/orders_helper.rb
MyCommerce-0.0.3 core/app/helpers/admin/orders_helper.rb
rfcommerce_core-0.0.3 app/helpers/admin/orders_helper.rb
spree_core-0.60.6 app/helpers/admin/orders_helper.rb
spree_core-0.70.5 app/helpers/admin/orders_helper.rb
spree_core-0.70.4 app/helpers/admin/orders_helper.rb
spree_core-0.60.5 app/helpers/admin/orders_helper.rb
spree_core-0.70.3 app/helpers/admin/orders_helper.rb
spree_core-0.70.2 app/helpers/admin/orders_helper.rb
spree_core-0.30.2 app/helpers/admin/orders_helper.rb
spree_core-0.40.4 app/helpers/admin/orders_helper.rb
spree_core-0.50.4 app/helpers/admin/orders_helper.rb
spree_core-0.60.4 app/helpers/admin/orders_helper.rb
spree_core-0.50.3 app/helpers/admin/orders_helper.rb
spree_core-0.60.3 app/helpers/admin/orders_helper.rb