Skip to content

Commit

Permalink
Fixed #873 -- Stopped showing dev warning for internals pages (which …
Browse files Browse the repository at this point in the history
…are canonical) (#876)
  • Loading branch information
tobiasmcnulty authored Mar 6, 2019
1 parent 76e168b commit 8db0da1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions djangoproject/templates/docs/doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@

{% block body_extra %}
{% 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." %}
</div>
{% endif %}
{% elif not release.is_supported %}
<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!" %}
Expand Down

0 comments on commit 8db0da1

Please sign in to comment.