Skip to content

Commit

Permalink
Merge pull request #39 from Panopto/staging
Browse files Browse the repository at this point in the history
2022090700 release Update.
  • Loading branch information
jmalmsten-panopto authored Sep 7, 2022
2 parents 1abf861 + c84a33e commit bcb62ad
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/panoptosubmission_lti_utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public static function get_course_tool_id($courseid) {
]
);

if (!empty($targetservername) && strpos($type->config['toolurl'], $targetservername) !== false &&
if (!empty($targetservername) && stripos($type->config['toolurl'], $targetservername) !== false &&
$type->state == LTI_TOOL_STATE_CONFIGURED) {
$currentconfig = lti_get_type_config($type->id);

if (!empty($currentconfig['customparameters']) &&
strpos($currentconfig['customparameters'], 'panopto_student_submission_tool') !== false) {
stripos($currentconfig['customparameters'], 'panopto_student_submission_tool') !== false) {
return $type->id;
}
}
Expand Down
Binary file modified pix/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions pix/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,22 @@ public function col_status($data) {
$output .= html_writer::tag('div', get_string('needs_grade', 'panoptosubmission'), $gradedstatusattributes);
}

$due = $this->cminstance->timedue;
if (!empty($this->quickgrade) && $submitted && ($data->timemodified > $due)) {
$latestr = get_string('late', 'panoptosubmission', format_time($data->timemodified - $due));
$lateattributes = array(
'class' => 'panopto-latesubmission'
);
$output .= html_writer::tag('div', $latestr, $lateattributes);
}

if (!$submitted) {
$gradedstatusattributes = array(
'class' => 'panopto-status-not-submitted'
);
$output .= html_writer::tag('div', get_string('nosubmission', 'panoptosubmission'), $gradedstatusattributes);

$now = time();
$due = $this->cminstance->timedue;
if ($due && ($now > $due)) {
$overduestr = get_string('overdue', 'assign', format_time($now - $due));
$overdueattributes = array(
Expand Down
4 changes: 4 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
color: red;
}

.panopto-latesubmission {
color: red;
}

.panopto-grade-input-container {
white-space: nowrap;
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2022070700;
$plugin->version = 2022090700;

// Requires this Moodle version - 2.7.
$plugin->requires = 2014051202;
Expand Down

0 comments on commit bcb62ad

Please sign in to comment.