2014-01-16 10:15:00 +00:00
|
|
|
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
|
2014-01-16 10:15:00 +00:00
|
|
|
else
|
|
|
|
[t(:no_app), 'icons-daniel-bruce-2']
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|