##// END OF EJS Templates
ui: hide empty no repos or no repo groups display. It often happens that starting...
ui: hide empty no repos or no repo groups display. It often happens that starting page is just a list of groups. Showing always no repos doesn't look good. - also show empty panel for a case when both are empty

File last commit:

r2351:59272121 default
r2447:9ef21084 default
Show More
plugin_init.mako
19 lines | 620 B | application/x-mako | MakoHtmlLexer
<%page args="config"/>
<script>
var CHANNELSTREAM_URLS = ${config['url_gen'](request)|n};
%if request.registry.rhodecode_plugins['channelstream']['enabled'] and c.rhodecode_user.username != h.DEFAULT_USER:
var CHANNELSTREAM_SETTINGS = {
'enabled': true,
'ws_location': '${request.registry.settings.get('channelstream.ws_url')}',
'webapp_location': '${h.route_url('home').rstrip('/')}'
};
%else:
var CHANNELSTREAM_SETTINGS = {
'enabled':false,
'ws_location': '',
'webapp_location': '${h.route_url('home').rstrip('/')}'
};
%endif
</script>