MDL-80742 mod_assign: Remove the 'back' button on the submissions page

This commit is contained in:
Mihail Geshoski 2024-02-04 22:13:12 +08:00
parent 3fc907e3d8
commit 2d3664dc40
2 changed files with 0 additions and 5 deletions

View File

@ -71,7 +71,6 @@ class grading_actionmenu implements templatable, renderable {
$downloadall = (new moodle_url('/mod/assign/view.php', ['id' => $this->cmid, 'action' => 'downloadall']))->out(false);
}
return [
'back' => (new moodle_url('/mod/assign/view.php', ['id' => $this->cmid]))->out(false),
'downloadall' => $downloadall
];
}

View File

@ -27,16 +27,12 @@
Example context (json):
{
"back": "https://moodle.org",
"downloadall": "https://moodle.org"
}
}}
<div class="container-fluid tertiary-navigation">
<div class="row">
<div class="navitem">
<a class="btn btn-secondary" href="{{back}}">{{#str}}back, mod_assign{{/str}}</a>
</div>
{{#downloadall}}
<div class="navitem ml-sm-auto">
<a class="btn btn-secondary" href="{{downloadall}}">{{#str}}downloadall, mod_assign{{/str}}</a>