Show More
@@ -118,8 +118,11 b' def asset(path, ver=None):' | |||||
118 | :param ver: optional version query param to append as ?ver= |
|
118 | :param ver: optional version query param to append as ?ver= | |
119 | """ |
|
119 | """ | |
120 | request = get_current_request() |
|
120 | request = get_current_request() | |
|
121 | query = {} | |||
|
122 | if ver: | |||
|
123 | query = {'ver': ver} | |||
121 | return request.static_url( |
|
124 | return request.static_url( | |
122 |
'rhodecode:public/{}'.format(path), _query= |
|
125 | 'rhodecode:public/{}'.format(path), _query=query) | |
123 |
|
126 | |||
124 |
|
127 | |||
125 | def html_escape(text, html_escape_table=None): |
|
128 | def html_escape(text, html_escape_table=None): |
General Comments 0
You need to be logged in to leave comments.
Login now