Skip to content

Add link to latest documentation in version warning banner #2102

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 4 additions & 1 deletion docs/templates/docs/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@
{% if release.is_dev %}
{% if "internals" not in docurl %}{# The dev version is canonical for internals/. #}
<div id="dev-warning" class="doc-floating-warning">
{% trans "This document is for Django's development version, which can be significantly different from previous releases. For older releases, use the version selector floating in the bottom right corner of this page." %}
{% blocktrans trimmed %}
This document is for Django's development version, which can be significantly different from previous releases.
<a href="{% url 'docs_version' version='stable %}" style="font-weight : bold; text-decoration: underline;"> Click here for the stable version </a>
{% endblocktrans %}
</div>
{% endif %}
{% elif release.is_preview %}
Expand Down