Index: openacs-4/packages/proctoring-support/lib/proctoring-display.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/proctoring-support/lib/proctoring-display.adp,v
diff -u -r1.1.2.15 -r1.1.2.16
--- openacs-4/packages/proctoring-support/lib/proctoring-display.adp 21 Feb 2022 14:03:53 -0000 1.1.2.15
+++ openacs-4/packages/proctoring-support/lib/proctoring-display.adp 21 Feb 2022 15:36:45 -0000 1.1.2.16
@@ -76,8 +76,8 @@
border-color: #a94442;
}
-[name='revision'].flagged {
- color: #a94442;
+.flex-container.unflagged {
+ border-color: #3c763d;
}
.flex-container img {
@@ -357,16 +357,6 @@
@events.timestamp@
-
-
-
-
@@ -399,6 +389,16 @@
#acs-subsite.Comment#
+
+
+
+
@@ -480,6 +480,7 @@
}
var revisions = e.getAttribute('data-revisions');
var isFlagged = false;
+ var isUnflagged = false;
if (revisions !== '') {
for (r of JSON.parse(decodeURIComponent(revisions))) {
@@ -501,6 +502,8 @@
if (r.flag === 'true') {
isFlagged = true;
+ } else if (r.flag === 'false') {
+ isUnflagged = true;
}
var deleteButton = revision.querySelector(".delete");
@@ -515,6 +518,11 @@
} else {
e.parentElement.classList.remove("flagged");
}
+ if (isUnflagged) {
+ e.parentElement.classList.add("unflagged");
+ } else {
+ e.parentElement.classList.remove("unflagged");
+ }
hideFiltered();
}
for (e of document.querySelectorAll("[name='revisions']")) {
@@ -526,16 +534,6 @@
-
-
-
-
@@ -560,6 +558,16 @@
style="display:none;"
data-artifact-id="">#acs-subsite.Comment#
+
+
+
+