diff --git a/app/helpers/admin/items_helper.rb b/app/helpers/admin/items_helper.rb index 7df0dad70..2d760294f 100644 --- a/app/helpers/admin/items_helper.rb +++ b/app/helpers/admin/items_helper.rb @@ -41,4 +41,13 @@ module Admin::ItemsHelper end end + def get_item_module_infos(item) + if module_app = item.module_app + app = OrbitApp::Module::Registration.find_by_key(module_app.key) + [t(app.get_label_i18n), (app.get_icon_class rescue 'icons-daniel-bruce-2')] + else + [t(:no_app), 'icons-daniel-bruce-2'] + end + end + end diff --git a/app/helpers/admin/tags_helper.rb b/app/helpers/admin/tags_helper.rb index d42a50065..a9c48c3a2 100644 --- a/app/helpers/admin/tags_helper.rb +++ b/app/helpers/admin/tags_helper.rb @@ -1,4 +1,9 @@ module Admin::TagsHelper + + def get_module_app_icon(module_app) + app = OrbitApp::Module::Registration.find_by_key(module_app.key) + app.get_icon_class rescue 'icons-daniel-bruce-2' + end def show_names_slash(tag) span_names = @site_valid_locales.inject([]) do |names, locale| diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9c1e3c785..d9e4f512a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -272,9 +272,4 @@ module ApplicationHelper "http://#{request.host}:2#{site_number}00" end - def get_module_app_icon(module_app) - app = OrbitApp::Module::Registration.find_by_key(module_app.key) - app.get_icon_class rescue 'icons-daniel-bruce-2' - end - end