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