Sha256: 57b060efa0d4edd62f8ef5f2b547ee7d7fd320e23a995b5f8c55fe2fb1407ca2

Contents?: true

Size: 477 Bytes

Versions: 62

Compression:

Stored size: 477 Bytes

Contents

module Workarea
  module Admin
    module OrdersHelper
      def render_order_timeline_entry(entry)
        render "workarea/admin/orders/timeline/#{entry.slug}", entry: entry

      rescue ActionView::MissingTemplate
        '' # we don't want to render anything if the partial is missing
      end

      def state_indicator_class(status)
        state = Workarea.config.status_state_indicators[status]
        "state--#{state}" if state.present?
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.15 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.36 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.14 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.35 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.13 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.34 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.12 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.33 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.11 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.10 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.32 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.9 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.31 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.8 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.30 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.7 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.29 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.6 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.4.28 app/helpers/workarea/admin/orders_helper.rb
workarea-admin-3.5.5 app/helpers/workarea/admin/orders_helper.rb