commit/galaxy-central: dannon: Use url_for with webhelpers + reinstate previous absolute path w/ slash.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/fe2fdbbecd85/ Changeset: fe2fdbbecd85 User: dannon Date: 2014-01-22 22:03:57 Summary: Use url_for with webhelpers + reinstate previous absolute path w/ slash. Affected #: 1 file diff -r 4f898ebb8a0fe36c762ed61f09847af8afcfbd79 -r fe2fdbbecd853aafbd0d5748c796d37399d98bd6 lib/galaxy/web/framework/helpers/__init__.py --- a/lib/galaxy/web/framework/helpers/__init__.py +++ b/lib/galaxy/web/framework/helpers/__init__.py @@ -57,7 +57,7 @@ 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 @@ 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 ): """ Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org