mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-73416 core_badges: limit page width on most badge pages
This commit is contained in:
parent
0c63990e4f
commit
38d0498c0f
@ -69,6 +69,7 @@ $PAGE->set_context($context);
|
||||
$PAGE->set_url($currenturl);
|
||||
$PAGE->set_heading($heading);
|
||||
$PAGE->set_title($badge->name);
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
$PAGE->navbar->add($badge->name);
|
||||
|
||||
$output = $PAGE->get_renderer('core', 'badges');
|
||||
|
@ -73,6 +73,7 @@ if ($course = $DB->get_record('course', array('id' => $courseid))) {
|
||||
$hdr = get_string('managebadges', 'badges');
|
||||
$returnurl = new moodle_url('/badges/index.php', $urlparams);
|
||||
$PAGE->set_url($returnurl);
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
||||
if ($type == BADGE_TYPE_SITE) {
|
||||
$title = get_string('sitebadges', 'badges');
|
||||
|
@ -41,6 +41,7 @@ if (empty($CFG->badges_allowcoursebadges) && ($type == BADGE_TYPE_COURSE)) {
|
||||
}
|
||||
|
||||
$title = get_string('create', 'badges');
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
||||
if (($type == BADGE_TYPE_COURSE) && ($course = $DB->get_record('course', array('id' => $courseid)))) {
|
||||
require_login($course);
|
||||
|
@ -61,6 +61,8 @@ if ($course = $DB->get_record('course', array('id' => $courseid))) {
|
||||
$PAGE->set_url('/badges/view.php', array('type' => $type, 'sort' => $sortby, 'dir' => $sorthow));
|
||||
}
|
||||
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
||||
if ($type == BADGE_TYPE_SITE) {
|
||||
$PAGE->set_context(context_system::instance());
|
||||
$PAGE->set_pagelayout('admin');
|
||||
|
Loading…
x
Reference in New Issue
Block a user