Sha256: 2fdd53c1729a689dfdcd5a9c74e6d3935e056101c0a621033d8372156f19858d

Contents?: true

Size: 341 Bytes

Versions: 59

Compression:

Stored size: 341 Bytes

Contents

module Workarea
  module Admin::ChangesetsHelper
    def changeset_icon(changeset, options = {})
      type = changeset.root.model_name.element
      inline_svg(icon_path(type), options)
    end

    private

    def icon_path(type)
      Workarea.config.releasable_icons[type.to_sym] || "workarea/admin/icons/#{type}.svg"
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
workarea-admin-3.4.45 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.23 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.44 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.22 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.43 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.21 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.42 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.20 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.41 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.19 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.40 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.18 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.39 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.17 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.38 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.16 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.37 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.15 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.4.36 app/helpers/workarea/admin/changesets_helper.rb
workarea-admin-3.5.14 app/helpers/workarea/admin/changesets_helper.rb