Allow platform admins and internal users to switch their current study group

This commit is contained in:
Sebastian Serth
2022-09-20 00:12:46 +02:00
committed by Sebastian Serth
parent 2e3480a068
commit ac3dc8d30f
12 changed files with 94 additions and 21 deletions

View File

@@ -529,7 +529,7 @@ var CodeOceanEditor = {
ul.append(li);
const sub_ul = document.createElement("ul");
sub_ul.setAttribute('class', 'error_messages_list');
sub_ul.setAttribute('class', 'inline_list');
for (let check_run of linter_results) {
const sub_li = document.createElement("li");
@@ -559,9 +559,9 @@ var CodeOceanEditor = {
// one or more errors?
if (errorMessagesToShow.length > 1) {
ul.setAttribute('class', 'error_messages_list');
ul.setAttribute('class', 'inline_list');
} else {
ul.setAttribute('class', 'single_error_message');
ul.setAttribute('class', 'single_entry_inline_list');
}
targetNode.append(ul);
}

View File

@@ -139,3 +139,15 @@ span.caret {
.table-row-clickable {
cursor: pointer;
}
.inline_list {
list-style-type: disc;
padding-inline-start: 1.25rem;
white-space: pre-wrap;
}
.single_entry_inline_list {
list-style-type: none;
padding-inline-start: 0;
white-space: pre-wrap;
}

View File

@@ -161,18 +161,6 @@
margin-left: auto;
}
.error_messages_list {
list-style-type: disc;
padding-inline-start: 1.25rem;
white-space: pre-wrap;
}
.single_error_message {
list-style-type: none;
padding-inline-start: 0;
white-space: pre-wrap;
}
.enforce-top-margin {
margin-top: 5px !important;
}