Extend the idea in #13512 to a few more tabs
This commit is contained in:
parent
e275f77c4c
commit
f2da1b5544
|
@ -111,6 +111,7 @@ dispatcher_add(function(sammy) {
|
|||
|
||||
if (ac.canAccessVhosts()) {
|
||||
sammy.get('#/connections', function() {
|
||||
this.title('Connections');
|
||||
renderConnections();
|
||||
});
|
||||
sammy.get('#/connections/:name', function() {
|
||||
|
@ -143,6 +144,7 @@ dispatcher_add(function(sammy) {
|
|||
return false;
|
||||
});
|
||||
sammy.get('#/channels', function() {
|
||||
this.title('Channels');
|
||||
renderChannels();
|
||||
});
|
||||
sammy.get('#/channels/:name', function() {
|
||||
|
@ -336,6 +338,7 @@ dispatcher_add(function(sammy) {
|
|||
'operator_policies': '/operator-policies',
|
||||
'vhosts': '/vhosts'}, 'policies');
|
||||
sammy.get('#/policies/:vhost/:id', function() {
|
||||
this.title('Policies');
|
||||
render({'policy': '/policies/' + esc(this.params['vhost'])
|
||||
+ '/' + esc(this.params['id'])},
|
||||
'policy', '#/policies');
|
||||
|
|
|
@ -75,7 +75,7 @@ function dispatcher_add(fun) {
|
|||
|
||||
function dispatcher() {
|
||||
this.use('Title');
|
||||
this.setTitle('RabbitMQ - ');
|
||||
this.setTitle('RabbitMQ: ');
|
||||
for (var i in dispatcher_modules) {
|
||||
dispatcher_modules[i](this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue