Sha256: b06b77f9a946ff982bf55ddf0904b083ddaab175cd2fee164f15604da31a87ee
Contents?: true
Size: 887 Bytes
Versions: 7
Compression:
Stored size: 887 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, :data => { :confirm => t(:order_sure_want_to, :event => t(event)) }) end end links.join(' ').html_safe end end end end
Version data entries
7 entries across 7 versions & 1 rubygems