mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-73354 mod_assign: General tidy up of tertiary navigation.
This commit is contained in:
parent
5897242361
commit
33e6a36daf
5 changed files with 28 additions and 99 deletions
|
@ -442,15 +442,6 @@ function assign_extend_settings_navigation(settings_navigation $settings, naviga
|
|||
$navref->add_node($node, $beforekey);
|
||||
}
|
||||
|
||||
// Link to gradebook.
|
||||
if (has_capability('gradereport/grader:view', $cm->context) &&
|
||||
has_capability('moodle/grade:viewall', $cm->context)) {
|
||||
$link = new moodle_url('/grade/report/grader/index.php', array('id' => $course->id));
|
||||
$linkname = get_string('viewgradebook', 'assign');
|
||||
$node = $navref->add($linkname, $link, navigation_node::TYPE_SETTING);
|
||||
$node->set_force_into_more_menu(true);
|
||||
}
|
||||
|
||||
if (has_capability('mod/assign:revealidentities', $context)) {
|
||||
$dbparams = array('id'=>$cm->instance);
|
||||
$assignment = $DB->get_record('assign', $dbparams, 'blindmarking, revealidentities');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue