mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Use url_for with webhelpers + reinstate previous absolute path w/ slash.
This commit is contained in:
@@ -57,7 +57,7 @@ def css( *args ):
|
||||
|
||||
Cache-bust with time that server started running on
|
||||
"""
|
||||
return "\n".join( [ stylesheet_link( "static/style/" + name + ".css?v=%s" % server_starttime ) for name in args ] )
|
||||
return "\n".join( [ stylesheet_link( url_for( "/static/style/%s.css?v=%s" % (name, server_starttime) ) ) for name in args ] )
|
||||
|
||||
def js_helper( prefix, *args ):
|
||||
"""
|
||||
@@ -66,7 +66,7 @@ def js_helper( prefix, *args ):
|
||||
|
||||
Cache-bust with time that server started running on
|
||||
"""
|
||||
return "\n".join( [ javascript_link( prefix + name + ".js?v=%s" % server_starttime ) for name in args ] )
|
||||
return "\n".join( [ javascript_link( url_for( "/%s%s.js?v=%s" % (prefix, name, server_starttime ) ) ) for name in args ] )
|
||||
|
||||
def js( *args ):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user