17 lines
404 B
Ruby
17 lines
404 B
Ruby
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)
|
|
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
|