Commit 40e24fda authored by Ankit Agarwal's avatar Ankit Agarwal
Browse files

MDL-57004: boost: Show action menu on section pages

parent b4d6669d
......@@ -564,7 +564,8 @@ class core_renderer extends \core_renderer {
$menu->add_secondary_action($link);
}
}
} else if (!empty($node) && $node->type == navigation_node::TYPE_COURSE) {
} else if (!empty($node) &&
($node->type == navigation_node::TYPE_COURSE || $node->type == navigation_node::TYPE_SECTION)) {
$settingsnode = $this->page->settingsnav->find('courseadmin', navigation_node::TYPE_COURSE);
if ($settingsnode) {
// Build an action menu based on the visible nodes from this navigation tree.
......
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