Put back deleted code in items helper
This commit is contained in:
parent
3714403f85
commit
3e0822336e
|
@ -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
|
||||
|
|
|
@ -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|
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue