Styling tweaks
This commit is contained in:
parent
bfcd41dd81
commit
f3bf55598d
2
amd/build/report-viewer-components.min.js
vendored
2
amd/build/report-viewer-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1149,7 +1149,7 @@ export default {
|
|||
case "failed":
|
||||
return "times";
|
||||
case "progress":
|
||||
return "exclamation";
|
||||
return "";
|
||||
case "completed":
|
||||
return "check";
|
||||
case "good":
|
||||
|
@ -1235,20 +1235,21 @@ export default {
|
|||
<template v-if='!value.course.enrolled'>
|
||||
{{text.not_enrolled}}
|
||||
<i v-b-popover.top
|
||||
class="r-course-result fa fa-exclamation-triangle t-not-enrolled-alert"
|
||||
class="fa fa-exclamation-triangle t-not-enrolled-alert"
|
||||
:title="text.student_not_tracked"></i>
|
||||
</template>
|
||||
<template v-else-if='hasprogressinfo'>
|
||||
<template v-else-if='hasprogressinfo && !value.course.showprogressbar'>
|
||||
{{text['completion_'+value.completion]}}
|
||||
<r-progress-circle v-if='["failed", "progress","incomplete"].includes(value.completion)'
|
||||
:value='courseprogress'
|
||||
:max='1'
|
||||
:min='0'
|
||||
:class="'r-course-result r-completion-'+value.completion"
|
||||
:class="'r-progress-circle-popup r-completion-'+value.completion"
|
||||
:icon='circle_icon(value.completion)'
|
||||
:title="text['completion_'+value.completion]"
|
||||
></r-progress-circle>
|
||||
<i v-else v-b-popover.top
|
||||
:class="'r-course-result fa fa-'+completion_icon(value.completion)+
|
||||
:class="'fa fa-'+completion_icon(value.completion)+
|
||||
' r-completion-'+value.completion"
|
||||
:title="text['completion_'+value.completion]"></i>
|
||||
</template>
|
||||
|
|
|
@ -583,9 +583,11 @@ class courseinfo {
|
|||
if(strlen($value) > 0) {
|
||||
$value .= ", ";
|
||||
}
|
||||
$value .= $contact["username"] . "(".$contact["role"]["name"].")";
|
||||
$value .= $contact["username"];
|
||||
}
|
||||
if (empty($value)) {
|
||||
$value = get_string("none");
|
||||
}
|
||||
|
||||
return [$value, "text", $value];
|
||||
} else if (strpos( $fieldname , "customfield_") === 0) {
|
||||
$fieldshortname = substr($fieldname, strlen("customfield_"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user