MDL-56834 boost: Nav for participants page
On the participants page, hide the small cog and put a region main settings menu with all the nodes from the "Users" branch in the settings block.
This commit is contained in:
@@ -631,6 +631,18 @@ class core_renderer extends \core_renderer {
|
||||
$this->build_action_menu_from_navigation($menu, $node);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$items = $this->page->navbar->get_items();
|
||||
$navbarnode = end($items);
|
||||
|
||||
if ($navbarnode->key == 'participants') {
|
||||
$node = $this->page->settingsnav->find('users', navigation_node::TYPE_CONTAINER);
|
||||
if ($node) {
|
||||
// Build an action menu based on the visible nodes from this navigation tree.
|
||||
$this->build_action_menu_from_navigation($menu, $node);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return $this->render($menu);
|
||||
}
|
||||
|
||||
@@ -294,3 +294,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Remove the little cog from participants page because we are putting a cog menu there.
|
||||
.userlist h3 .action-icon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user