mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-57004: boost: Show action menu on section pages
This commit is contained in:
parent
b4d6669dd0
commit
40e24fda5b
1 changed files with 2 additions and 1 deletions
|
@ -564,7 +564,8 @@ class core_renderer extends \core_renderer {
|
||||||
$menu->add_secondary_action($link);
|
$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);
|
$settingsnode = $this->page->settingsnav->find('courseadmin', navigation_node::TYPE_COURSE);
|
||||||
if ($settingsnode) {
|
if ($settingsnode) {
|
||||||
// Build an action menu based on the visible nodes from this navigation tree.
|
// Build an action menu based on the visible nodes from this navigation tree.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue