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:
Damyon Wiese
2016-11-14 10:40:41 +08:00
parent 0b8e0c374f
commit a7bebd0638
2 changed files with 17 additions and 0 deletions
@@ -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);
}
+5
View File
@@ -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;
}