# HG changeset patch # User Marcin Kuzminski # Date 2019-10-31 14:13:08 # Node ID 2f0df463055ac7602c07170dabc460c15541f3fd # Parent 8d4c4139309bb2f772dc72d43f9003aac31e1410 js: fixed usage of minimized JS diff --git a/default.nix b/default.nix --- a/default.nix +++ b/default.nix @@ -190,7 +190,7 @@ let postInstall = '' # check required files STATIC_CHECK="/robots.txt /502.html - /js/scripts.js /js/rhodecode-components.js + /js/scripts.min.js /js/rhodecode-components.js /css/style.css /css/style-polymer.css /css/style-ipython.css" for file in $STATIC_CHECK; diff --git a/rhodecode/apps/home/tests/test_home.py b/rhodecode/apps/home/tests/test_home.py --- a/rhodecode/apps/home/tests/test_home.py +++ b/rhodecode/apps/home/tests/test_home.py @@ -62,7 +62,7 @@ class TestHomeController(TestController) rhodecode_version_hash = calculate_version_hash( {'beaker.session.secret': 'test-rc-uytcxaz'}) response.mustcontain('style.css?ver={0}'.format(rhodecode_version_hash)) - response.mustcontain('scripts.js?ver={0}'.format(rhodecode_version_hash)) + response.mustcontain('scripts.min.js?ver={0}'.format(rhodecode_version_hash)) def test_index_contains_backend_specific_details(self, backend): self.log_user() diff --git a/rhodecode/templates/errors/error_document.mako b/rhodecode/templates/errors/error_document.mako --- a/rhodecode/templates/errors/error_document.mako +++ b/rhodecode/templates/errors/error_document.mako @@ -21,7 +21,7 @@ // register templateContext to pass template variables to JS var templateContext = {timeago: {}}; - +