orbit-4-2/app/helpers/admin/items_helper.rb

17 lines
404 B
Ruby
Raw Permalink Normal View History

module Admin::ItemsHelper
def get_item_module_infos(item)
if module_app = item.module_app
app = OrbitApp::Module::Registration.find_by_key(module_app.key)
2014-01-24 11:21:37 +00:00
if !app.nil?
[t(app.get_label_i18n), (app.get_icon_class rescue 'icons-daniel-bruce-2')]
else
["","icon-minus-sign"]
end
else
[t(:no_app), 'icons-daniel-bruce-2']
end
end
end