Permalink
Browse files

Revert "MDL-38254 Assignment Module: add avaialble message to all ass…

…ignment types"

This reverts commit 079a76b.
  • Loading branch information...
1 parent 932d87f commit bf944109f0da5b85e09edb218314997df2c7854c @danpoltawski danpoltawski committed Apr 11, 2013
View
@@ -165,12 +165,6 @@ function view() {
$this->view_dates();
- if ($this->isopen() && $this->assignment->timedue > 0 && $this->assignment->timedue < time()) {
- echo $OUTPUT->heading(get_string('closedassignment','assignment'), 3);
- } else if ($this->assignment->timeavailable > time()) {
- echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
- }
-
$this->view_feedback();
$this->view_footer();
@@ -122,9 +122,7 @@ function view() {
$button->render();
}
} else if ($this->isopen()){ //fix for #4206
- echo $OUTPUT->heading(get_string('emptysubmission','assignment'), 3);
- } else if ($this->assignment->timeavailable > time()) {
- echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
+ echo '<div style="text-align:center">'.get_string('emptysubmission', 'assignment').'</div>';
}
}
echo $OUTPUT->box_end();
@@ -85,12 +85,8 @@ function view() {
}
}
- if (is_enrolled($this->context, $USER, 'mod/assignment:submit') && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
- if ($this->isopen()) {
- $this->view_upload_form();
- } else if ($this->assignment->timeavailable > time()) {
- echo $OUTPUT->heading(get_string('futureaassignment','assignment'), 3);
- }
+ if (is_enrolled($this->context, $USER, 'mod/assignment:submit') && $this->isopen() && (!$filecount || $this->assignment->resubmit || !$submission->timemarked)) {
+ $this->view_upload_form();
}
$this->view_footer();

0 comments on commit bf94410

Please sign in to comment.