Resolve Bootstrap 5.3 deprecations

This commit is contained in:
Sebastian Serth
2023-07-02 18:49:05 +02:00
parent 53ff809430
commit aab3b95a1d
6 changed files with 8 additions and 8 deletions

View File

@ -221,7 +221,7 @@ CodeOceanEditorEvaluation = {
if (sanitizedStdout === '' && sanitizedStderr === '') { if (sanitizedStdout === '' && sanitizedStderr === '') {
if (colorize) { if (colorize) {
pre.addClass('text-muted'); pre.addClass('text-body-secondary');
} }
pre.text($('#output').data('message-no-output')) pre.text($('#output').data('message-no-output'))
} }

View File

@ -67,7 +67,7 @@ $(document).on('turbolinks:load', function () {
if (!output.stdout && !output.stderr) { if (!output.stdout && !output.stderr) {
const element = $('<p>'); const element = $('<p>');
element.addClass('text-muted'); element.addClass('text-body-secondary');
element.text(log.data('message-no-output')); element.text(log.data('message-no-output'));
log.append(element); log.append(element);
} }
@ -164,7 +164,7 @@ $(document).on('turbolinks:load', function () {
const sudo = $('#sudo'); const sudo = $('#sudo');
sudo.on('change', function () { sudo.on('change', function () {
sudo.parent().toggleClass('text-muted') sudo.parent().toggleClass('text-body-secondary')
command.focus(); command.focus();
}); });
$('#reload-files').on('click', function () { $('#reload-files').on('click', function () {

View File

@ -3,7 +3,7 @@ h1 = @execution_environment
#shell data-message-timeout=t('exercises.editor.timeout', permitted_execution_time: @execution_environment.permitted_execution_time) data-message-out-of-memory=t('exercises.editor.out_of_memory', memory_limit: @execution_environment.memory_limit) data-id=@execution_environment.id #shell data-message-timeout=t('exercises.editor.timeout', permitted_execution_time: @execution_environment.permitted_execution_time) data-message-out-of-memory=t('exercises.editor.out_of_memory', memory_limit: @execution_environment.memory_limit) data-id=@execution_environment.id
label.form-label for='command' = t('execution_environments.shell.command') label.form-label for='command' = t('execution_environments.shell.command')
.input-group.mb-3 .input-group.mb-3
.input-group-text.form-switch.ps-5 class=('text-muted' unless @execution_environment.privileged_execution?) .input-group-text.form-switch.ps-5 class=('text-body-secondary' unless @execution_environment.privileged_execution?)
input#sudo.form-check-input.mt-0 type='checkbox' disabled=('disabled' if @execution_environment.privileged_execution?) checked=('checked' if @execution_environment.privileged_execution?) input#sudo.form-check-input.mt-0 type='checkbox' disabled=('disabled' if @execution_environment.privileged_execution?) checked=('checked' if @execution_environment.privileged_execution?)
label.ms-2 for='sudo' = 'sudo' label.ms-2 for='sudo' = 'sudo'
input#command.form-control type='text' input#command.form-control type='text'
@ -22,7 +22,7 @@ h1 = @execution_environment
span.mx-1 = t('execution_environments.shell.file_tree.empty') span.mx-1 = t('execution_environments.shell.file_tree.empty')
button#reload-now-link.btn.btn-link.p-0.m-0.border-0 = t('execution_environments.shell.file_tree.list_now') button#reload-now-link.btn.btn-link.p-0.m-0.border-0 = t('execution_environments.shell.file_tree.list_now')
- unless @execution_environment.privileged_execution? - unless @execution_environment.privileged_execution?
.card-footer.justify-content-center.align-items-center.d-flex.text-muted .card-footer.justify-content-center.align-items-center.d-flex.text-body-secondary
i.fa-solid.fa-info i.fa-solid.fa-info
span.ms-2 = t('execution_environments.shell.file_tree.root_notice') span.ms-2 = t('execution_environments.shell.file_tree.root_notice')

View File

@ -23,7 +23,7 @@ h1 = @user.displayname
- if study_group_membership.study_group_id == current_user.current_study_group_id - if study_group_membership.study_group_id == current_user.current_study_group_id
span.text-success =< t('users.show.current_study_group') span.text-success =< t('users.show.current_study_group')
- else - else
=< link_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, class: 'text-muted') =< link_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, class: 'text-body-secondary')
- elsif @user == current_user && study_group_membership.role_teacher? && study_group_membership.study_group_id == current_user.current_study_group_id - elsif @user == current_user && study_group_membership.role_teacher? && study_group_membership.study_group_id == current_user.current_study_group_id
| , | ,
span.text-success =< t('users.show.current_study_group') span.text-success =< t('users.show.current_study_group')

View File

@ -23,7 +23,7 @@ h1
- if study_group_membership.study_group_id == current_user.current_study_group_id - if study_group_membership.study_group_id == current_user.current_study_group_id
span.text-success =< t('users.show.current_study_group') span.text-success =< t('users.show.current_study_group')
- else - else
=< link_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, class: 'text-muted') =< link_to(t('users.show.set_as_current_study_group'), set_as_current_study_group_path(study_group_membership.study_group), method: :post, class: 'text-body-secondary')
| ) | )
- else - else
= t('users.show.no_groups') = t('users.show.no_groups')

View File

@ -19,7 +19,7 @@ html lang="#{I18n.locale || I18n.default_locale}" data-default-locale="#{I18n.de
meta name='current-user' content=current_user&.to_sentry_context&.to_json meta name='current-user' content=current_user&.to_sentry_context&.to_json
body body
- unless @embed_options[:hide_navbar] - unless @embed_options[:hide_navbar]
nav.navbar.navbar-dark.bg-dark.navbar-expand-md.mb-4.py-1 role='navigation' nav.navbar.bg-dark.navbar-expand-md.mb-4.py-1 role='navigation' data-bs-theme="dark"
.container .container
.navbar-brand .navbar-brand
i.fa-solid.fa-code i.fa-solid.fa-code