Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions renderers/object_renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -468,20 +468,26 @@ public function render_plagiarism_links($files) {
*/
protected function render_mod_coursework_coursework(mod_coursework_coursework $coursework) {

global $PAGE, $USER;
global $CFG, $PAGE, $USER;

$out = '';

// Show the details of the assessment (Name and introduction.
$out = html_writer::tag('h2', $coursework->name);
if ($CFG->branch < 400) {
// Show the details of the assessment (Name and introduction.
$out .= html_writer::tag('h2', $coursework->name);
}

if (has_capability('mod/coursework:allocate', $coursework->get_context())) {
$warnings = new warnings($coursework);
$out .= $warnings->not_enough_assessors();
}

// Intro has it's own <p> tags etc.
$out .= '<div class="description">';
$out .= format_module_intro('coursework', $coursework, $coursework->get_coursemodule_id());
$out .= '</div>';
if ($CFG->branch < 400) {
// Intro has it's own <p> tags etc.
$out .= '<div class="description">';
$out .= format_module_intro('coursework', $coursework, $coursework->get_coursemodule_id());
$out .= '</div>';
}

// Deadlines section.
$out .= html_writer::tag('h3', get_string('deadlines', 'coursework'));
Expand Down Expand Up @@ -1477,7 +1483,7 @@ private function render_personal_deadline_table_row($personal_deadline_row) {
'courseworkid' => $personal_deadline_row->get_coursework()->id,
'setpersonaldeadlinespage' => '1'
);


$allocatable_cell_helper = $personal_deadline_row->get_allocatable_cell();
$personaldeadlines_cell_helper = $personal_deadline_row->get_personal_deadline_cell();
Expand Down