Skip to content

Commit ae416ba

Browse files
committed
Remove leftovers from django-messages-extends
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
1 parent e778db5 commit ae416ba

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

readthedocs/templates/base.html

+2-7
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,11 @@
120120

121121
<!-- BEGIN notify -->
122122
{% block notify %}
123-
{# TODO: migrate these notifications to new system #}
123+
{# These are regular one-time Django message attached to the request. #}
124124
{% if messages %}
125125
<ul class="notifications">
126126
{% for message in messages %}
127-
<li class="notification notification-{{ message.level }}" {% if message.pk %}data-dismiss-url="{% url 'message_mark_read' message.pk %}{% endif %}">
128-
{% if message.pk %}
129-
<a class="notification-action" href="{% url 'message_mark_read' message.pk %}">
130-
<span class="icon close" aria-label="{% trans 'Close notification' %}"></span>
131-
</a>
132-
{% endif %}
127+
<li class="notification notification-{{ message.level }}">
133128
{{ message }}
134129
</li>
135130
{% endfor %}

0 commit comments

Comments
 (0)