Show More
@@ -10,8 +10,8 b' Here is a sample configuration file for ' | |||||
10 | ServerAlias hg.myserver.com |
|
10 | ServerAlias hg.myserver.com | |
11 |
|
11 | |||
12 | ## uncomment to serve static files by Apache |
|
12 | ## uncomment to serve static files by Apache | |
13 | ## ProxyPass /_static ! |
|
13 | ## ProxyPass /_static/rhodecode ! | |
14 | ## Alias /_static /path/to/.rccontrol/enterprise-1/static |
|
14 | ## Alias /_static/rhodecode /path/to/.rccontrol/enterprise-1/static | |
15 |
|
15 | |||
16 | <Proxy *> |
|
16 | <Proxy *> | |
17 | Order allow,deny |
|
17 | Order allow,deny |
@@ -59,7 +59,7 b' Use the following example to configure N' | |||||
59 | include /etc/nginx/proxy.conf; |
|
59 | include /etc/nginx/proxy.conf; | |
60 |
|
60 | |||
61 | ## uncomment to serve static files by nginx |
|
61 | ## uncomment to serve static files by nginx | |
62 | # location /_static { |
|
62 | # location /_static/rhodecode { | |
63 | # alias /path/to/.rccontrol/enterprise-1/static; |
|
63 | # alias /path/to/.rccontrol/enterprise-1/static; | |
64 | # } |
|
64 | # } | |
65 |
|
65 |
@@ -318,7 +318,7 b' def includeme_first(config):' | |||||
318 | config.add_static_view( |
|
318 | config.add_static_view( | |
319 | '_static/deform', 'deform:static') |
|
319 | '_static/deform', 'deform:static') | |
320 | config.add_static_view( |
|
320 | config.add_static_view( | |
321 | '_static', path='rhodecode:public', cache_max_age=3600 * 24) |
|
321 | '_static/rhodecode', path='rhodecode:public', cache_max_age=3600 * 24) | |
322 |
|
322 | |||
323 | def wrap_app_in_wsgi_middlewares(pyramid_app, config): |
|
323 | def wrap_app_in_wsgi_middlewares(pyramid_app, config): | |
324 | """ |
|
324 | """ |
@@ -168,7 +168,7 b' var pyroutes = (function() {' | |||||
168 | }; |
|
168 | }; | |
169 | return { |
|
169 | return { | |
170 | 'asset': function(path, ver) { |
|
170 | 'asset': function(path, ver) { | |
171 | var asset_url = ASSET_URL || '/_static/'; |
|
171 | var asset_url = ASSET_URL || '/_static/rhodecode/'; | |
172 | var ret = asset_url + path; |
|
172 | var ret = asset_url + path; | |
173 | if (ver !== undefined) { |
|
173 | if (ver !== undefined) { | |
174 | ret += '?ver=' + ver; |
|
174 | ret += '?ver=' + ver; |
@@ -507,7 +507,7 b'' | |||||
507 | <td class="td-radio"><input type="radio" value="repository.admin" |
|
507 | <td class="td-radio"><input type="radio" value="repository.admin" | |
508 | name="u_perm_1" id="u_perm_1_repositoryadmin"></td> |
|
508 | name="u_perm_1" id="u_perm_1_repositoryadmin"></td> | |
509 | <td> |
|
509 | <td> | |
510 | <img class="gravatar" src="/_static/images/user30.png" height="16" width="16"> |
|
510 | <img class="gravatar" src="/_static/rhodecode/images/user30.png" height="16" width="16"> | |
511 | <span class="user">default</span> |
|
511 | <span class="user">default</span> | |
512 | </td> |
|
512 | </td> | |
513 | <td></td> |
|
513 | <td></td> |
General Comments 0
You need to be logged in to leave comments.
Login now