diff --git a/djangoproject/scss/_style.scss b/djangoproject/scss/_style.scss index e1c14e820..536f4d710 100644 --- a/djangoproject/scss/_style.scss +++ b/djangoproject/scss/_style.scss @@ -3704,3 +3704,14 @@ ul.corporate-members li { top: 0; } } +.docs-info-banner { + background-color: #eef6ff; + border-left: 4px solid #3b82f6; + padding: 10px 14px; + margin-bottom: 1rem; + font-size: 0.9rem; +} + +.docs-info-banner a { + font-weight: 600; +} diff --git a/docs/templates/docs/doc.html b/docs/templates/docs/doc.html index 8bce6c2f0..f5dffc59b 100644 --- a/docs/templates/docs/doc.html +++ b/docs/templates/docs/doc.html @@ -49,6 +49,12 @@
{% trans "This document is for an insecure version of Django that is no longer supported. Please upgrade to a newer release!" %}
+ {% elif release.is_supported and not release.is_default %} +
+ You are viewing documentation for Django {{ release.version }}. + A newer version is available. + View latest docs. +
{% endif %} {% endblock before_header %}