Skip to content

Commit

Permalink
Remove leftovers from django-messages-extends (#10994)
Browse files Browse the repository at this point in the history
Keep rendering regular one-time Django messages attached to the request, but
remove the logic used for sticky/permanent messages from
`django-messages-extends`.

Closes #10988
Related readthedocs/ext-theme#259
  • Loading branch information
humitos authored Jan 4, 2024
1 parent 4a001f3 commit 5ab5019
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions readthedocs/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,11 @@

<!-- BEGIN notify -->
{% block notify %}
{# TODO: migrate these notifications to new system #}
{# These are regular one-time Django message attached to the request. #}
{% if messages %}
<ul class="notifications">
{% for message in messages %}
<li class="notification notification-{{ message.level }}" {% if message.pk %}data-dismiss-url="{% url 'message_mark_read' message.pk %}{% endif %}">
{% if message.pk %}
<a class="notification-action" href="{% url 'message_mark_read' message.pk %}">
<span class="icon close" aria-label="{% trans 'Close notification' %}"></span>
</a>
{% endif %}
<li class="notification notification-{{ message.level }}">
{{ message }}
</li>
{% endfor %}
Expand Down

0 comments on commit 5ab5019

Please sign in to comment.