Skip to content
Open
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
11 changes: 11 additions & 0 deletions djangoproject/scss/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
6 changes: 6 additions & 0 deletions docs/templates/docs/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<div id="outdated-warning" class="doc-floating-warning">
{% trans "This document is for an insecure version of Django that is no longer supported. Please upgrade to a newer release!" %}
</div>
{% elif release.is_supported and not release.is_default %}
<div class="docs-info-banner">
You are viewing documentation for Django {{ release.version }}.
A newer version is available.
<a href="/en/stable/">View latest docs</a>.
</div>
{% endif %}
{% endblock before_header %}

Expand Down