MDL-22978 Cleaned up styles for course overview and added a link to assignment grade page
This commit is contained in:
@@ -3237,12 +3237,12 @@ function assignment_print_overview($courses, &$htmlarray) {
|
||||
}
|
||||
if (empty($isopen) || empty($assignment->timedue)) {
|
||||
unset($assignments[$key]);
|
||||
}else{
|
||||
} else {
|
||||
$assignmentids[] = $assignment->id;
|
||||
}
|
||||
}
|
||||
|
||||
if(empty($assignmentids)){
|
||||
if (empty($assignmentids)){
|
||||
// no assigments to look at - we're done
|
||||
return true;
|
||||
}
|
||||
@@ -3298,18 +3298,20 @@ function assignment_print_overview($courses, &$htmlarray) {
|
||||
// count how many people can submit
|
||||
$submissions = 0; // init
|
||||
if ($students = get_users_by_capability($context, 'mod/assignment:submit', 'u.id', '', '', '', 0, '', false)) {
|
||||
foreach($students as $student){
|
||||
if(isset($unmarkedsubmissions[$assignment->id][$student->id])){
|
||||
foreach ($students as $student) {
|
||||
if (isset($unmarkedsubmissions[$assignment->id][$student->id])) {
|
||||
$submissions++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($submissions) {
|
||||
$str .= get_string('submissionsnotgraded', 'assignment', $submissions);
|
||||
$link = new moodle_url('/mod/assignment/submissions.php', array('id'=>$assignment->coursemodule));
|
||||
$str .= '<div class="details"><a href="'.$link.'">'.get_string('submissionsnotgraded', 'assignment', $submissions).'</a></div>';
|
||||
}
|
||||
} else {
|
||||
if(isset($mysubmissions[$assignment->id])){
|
||||
$str .= '<div class="details">';
|
||||
if (isset($mysubmissions[$assignment->id])) {
|
||||
|
||||
$submission = $mysubmissions[$assignment->id];
|
||||
|
||||
@@ -3323,6 +3325,7 @@ function assignment_print_overview($courses, &$htmlarray) {
|
||||
} else {
|
||||
$str .= $strnotsubmittedyet . ' ' . assignment_display_lateness(time(), $assignment->timedue);
|
||||
}
|
||||
$str .= '</div>';
|
||||
}
|
||||
$str .= '</div>';
|
||||
if (empty($htmlarray[$assignment->course]['assignment'])) {
|
||||
|
||||
@@ -286,10 +286,11 @@ a.skip:active {position: static;display: block;}
|
||||
/**
|
||||
* My Moodle
|
||||
*/
|
||||
.my .coursebox .overview .info {margin-left:20px;}
|
||||
.my .coursebox .overview {margin-bottom:10px;}
|
||||
#page-my-index .coursebox .info {float: none;}
|
||||
#page-my-index .name {margin-left: 5px;}
|
||||
.path-my .coursebox .overview .name {margin-left:20px;}
|
||||
.path-my .coursebox .overview .info {margin-left:25px;}
|
||||
.path-my .coursebox .overview .details {margin-left:25px;}
|
||||
.path-my .coursebox .overview {margin-bottom:10px;}
|
||||
.path-my .coursebox .info {float: none;}
|
||||
|
||||
/**
|
||||
* Logs
|
||||
@@ -596,4 +597,4 @@ body.tag .managelink {padding: 5px;}
|
||||
/**
|
||||
* Registration
|
||||
*/
|
||||
#page-admin-registration-register .registration_textfield {width: 300px;}
|
||||
#page-admin-registration-register .registration_textfield {width: 300px;}
|
||||
|
||||
Reference in New Issue
Block a user