Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grader is unstable banner might not be seen by the user #1320

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions course/templates/course/course_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ <h4>{% trans "Calendar" %}</h4>
</div>
{% endblock course_sidebar %}
<div class="col-sm-10" id="course-content">
{% if instance %}
{% course_alert instance %}
{% endif %}
{% if instance.is_past and instance.has_enrollment_closed %}
<div class="alert sticky-alert alert-default">
{% translate "COURSE_HAS_ALREADY_ENDED" %}
Expand Down
2 changes: 1 addition & 1 deletion course/templatetags/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def course_alert(instance):
_('GRADER_PROBLEMS_ALERT -- {exercises}'),
exercises=exercises,
)
return mark_safe(format_lazy('<div class="alert alert-danger">{message}</div>', message=message))
return mark_safe(format_lazy('<div class="alert alert-danger sticky-alert">{message}</div>', message=message))
return ''


Expand Down
3 changes: 0 additions & 3 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,6 @@ <h4>{% translate "SITE" %}</h4>
<main class="site-content container-fluid" id="content">
{% endblock %}
{% site_alert %}
{% if instance %}
{% course_alert instance %}
{% endif %}
{% include "_messages.html" %}
{% block content %}
<div class="error">
Expand Down
Loading