Commit a7bebd06 authored by Damyon Wiese's avatar Damyon Wiese
Browse files

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.
parent 0b8e0c37
......@@ -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;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment