diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c3e6689..75fc1f8 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -643,6 +643,15 @@ module ApplicationHelper html.join "\n" end + def theme_javascript_ng + script = File.join(theme_path, 'theme.js') + if File.exists?(File.join(Rails.root, 'public', script)) + javascript_include_tag script + else + nil + end + end + def file_field_or_thumbnail(label, image, i) display_form_field label, ( render :partial => (image && image.valid? ? 'shared/show_thumbnail' : 'shared/change_image'), diff --git a/app/views/layouts/application-ng.rhtml b/app/views/layouts/application-ng.rhtml index c64453e..439c765 100644 --- a/app/views/layouts/application-ng.rhtml +++ b/app/views/layouts/application-ng.rhtml @@ -90,5 +90,6 @@ <%= theme_footer %> <%= noosfero_layout_features %> + <%= theme_javascript_ng %> -- libgit2 0.21.2