module Admin::PageTemplatesHelper
def show_html_assets(list, type)
return '' unless list
o = ''
list.split(',').each do |s|
ss = HtmlAsset.sys(_sid).where(:file_type=>type).where('lower(name) = "' + s.downcase.strip + '"').first
if ss
o += "#{ss.name}"
else
o += s
end
o += ' '
end
return o.html_safe
end
end