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(' ').html_safe end end end end
Version data entries
9 entries across 9 versions & 2 rubygems