js: fixed usage of minimized JS
This commit is contained in:
parent
cd0bf47064
commit
8a683cb244
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
// register templateContext to pass template variables to JS
|
||||
var templateContext = {timeago: {}};
|
||||
</script>
|
||||
<script type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script>
|
||||
<script type="text/javascript" src="${h.asset('js/scripts.min.js', ver=c.rhodecode_version_hash)}"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue