diff --git a/rhodecode/public/js/src/components/rhodecode-legacy-js/rhodecode-legacy-js.html b/rhodecode/public/js/src/components/rhodecode-legacy-js/rhodecode-legacy-js.html new file mode 100644 --- /dev/null +++ b/rhodecode/public/js/src/components/rhodecode-legacy-js/rhodecode-legacy-js.html @@ -0,0 +1,7 @@ + + + + + diff --git a/rhodecode/public/js/src/components/rhodecode-legacy-js/rhodecode-legacy-js.js b/rhodecode/public/js/src/components/rhodecode-legacy-js/rhodecode-legacy-js.js new file mode 100644 --- /dev/null +++ b/rhodecode/public/js/src/components/rhodecode-legacy-js/rhodecode-legacy-js.js @@ -0,0 +1,3 @@ +Polymer({ + is: 'rhodecode-legacy-js', +}); diff --git a/rhodecode/public/js/src/components/shared-components.html b/rhodecode/public/js/src/components/shared-components.html --- a/rhodecode/public/js/src/components/shared-components.html +++ b/rhodecode/public/js/src/components/shared-components.html @@ -1,8 +1,9 @@ + - \ No newline at end of file + diff --git a/rhodecode/templates/base/root.html b/rhodecode/templates/base/root.html --- a/rhodecode/templates/base/root.html +++ b/rhodecode/templates/base/root.html @@ -119,10 +119,9 @@ c.template_context['visual']['default_re - ## avoide escaping the %N + - ## JAVASCRIPT EXTRA - optionally inject some extra JS for specificed templates diff --git a/rhodecode/tests/functional/test_home.py b/rhodecode/tests/functional/test_home.py --- a/rhodecode/tests/functional/test_home.py +++ b/rhodecode/tests/functional/test_home.py @@ -56,7 +56,7 @@ class TestHomeController(TestController) rhodecode_version_hash = c.rhodecode_version_hash response.mustcontain('style.css?ver={0}'.format(rhodecode_version_hash)) - response.mustcontain('scripts.js?ver={0}'.format(rhodecode_version_hash)) + response.mustcontain('rhodecode-components.js?ver={0}'.format(rhodecode_version_hash)) def test_index_contains_backend_specific_details(self, backend): self.log_user()