mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Fix the location of the link to the site-wide grading preferences
This commit is contained in:
parent
6308b91c13
commit
2c7a9bd2af
2 changed files with 8 additions and 4 deletions
|
@ -74,6 +74,10 @@ print_header_simple($strgrades.': '.$strgraderreport . ': ' . $strgradepreferenc
|
||||||
/// Print the plugin selector at the top
|
/// Print the plugin selector at the top
|
||||||
print_grade_plugin_selector($course->id, 'report', 'grader');
|
print_grade_plugin_selector($course->id, 'report', 'grader');
|
||||||
|
|
||||||
|
// Add tabs
|
||||||
|
$currenttab = 'preferences';
|
||||||
|
include('tabs.php');
|
||||||
|
|
||||||
// If USER has admin capability, print a link to the site config page for this report
|
// If USER has admin capability, print a link to the site config page for this report
|
||||||
if (has_capability('moodle/site:config')) {
|
if (has_capability('moodle/site:config')) {
|
||||||
echo '<div id="siteconfiglink"><a href="' . $CFG->wwwroot . '/admin/settings.php?section=gradereportgrader">';
|
echo '<div id="siteconfiglink"><a href="' . $CFG->wwwroot . '/admin/settings.php?section=gradereportgrader">';
|
||||||
|
@ -81,10 +85,6 @@ if (has_capability('moodle/site:config')) {
|
||||||
echo "</a></div>\n";
|
echo "</a></div>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add tabs
|
|
||||||
$currenttab = 'preferences';
|
|
||||||
include('tabs.php');
|
|
||||||
|
|
||||||
print_simple_box_start("center");
|
print_simple_box_start("center");
|
||||||
|
|
||||||
include('./preferences_form.php');
|
include('./preferences_form.php');
|
||||||
|
|
|
@ -2257,6 +2257,10 @@ body#doc-contents ul {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.grade-report-grader #siteconfiglink {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*** Login
|
*** Login
|
||||||
***/
|
***/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue