Show More
@@ -1,19 +1,19 b'' | |||||
1 | <%page args="config"/> |
|
1 | <%page args="config"/> | |
2 |
|
2 | |||
3 | <script> |
|
3 | <script> | |
4 | var CHANNELSTREAM_URLS = ${config['url_gen'](request)|n}; |
|
4 | var CHANNELSTREAM_URLS = ${config['url_gen'](request)|n}; | |
5 |
%if request.registry.rhodecode_plugins['channelstream']['enabled'] and c.rhodecode_user |
|
5 | %if request.registry.rhodecode_plugins['channelstream']['enabled'] and getattr(c.rhodecode_user, 'username', '') != h.DEFAULT_USER: | |
6 | var CHANNELSTREAM_SETTINGS = { |
|
6 | var CHANNELSTREAM_SETTINGS = { | |
7 | 'enabled': true, |
|
7 | 'enabled': true, | |
8 | 'ws_location': '${request.registry.settings.get('channelstream.ws_url')}', |
|
8 | 'ws_location': '${request.registry.settings.get('channelstream.ws_url')}', | |
9 | 'webapp_location': '${h.route_url('home').rstrip('/')}' |
|
9 | 'webapp_location': '${h.route_url('home').rstrip('/')}' | |
10 | }; |
|
10 | }; | |
11 | %else: |
|
11 | %else: | |
12 | var CHANNELSTREAM_SETTINGS = { |
|
12 | var CHANNELSTREAM_SETTINGS = { | |
13 | 'enabled':false, |
|
13 | 'enabled':false, | |
14 | 'ws_location': '', |
|
14 | 'ws_location': '', | |
15 | 'webapp_location': '${h.route_url('home').rstrip('/')}' |
|
15 | 'webapp_location': '${h.route_url('home').rstrip('/')}' | |
16 | }; |
|
16 | }; | |
17 | %endif |
|
17 | %endif | |
18 |
|
18 | |||
19 | </script> |
|
19 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now