Skip to content

Commit ca94970

Browse files
Less intrusive 4.0 update state info (godotengine#7100)
* Less intrusive 4.0 update state info --------- Co-authored-by: Yuri Sizov <11782833+YuriSizov@users.noreply.github.com>
1 parent 1b5a120 commit ca94970

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

_templates/layout.html

+16-16
Original file line numberDiff line numberDiff line change
@@ -28,38 +28,38 @@
2828
{%- block document %}
2929
<div itemprop="articleBody">
3030
{% if godot_is_latest or godot_show_article_status %}
31-
<div class="admonition-grid {% if godot_is_latest and godot_show_article_status %}admonition-grid-2x{% endif %}">
31+
<div class="admonition-grid">
3232
{% if godot_is_latest %}
3333
<div class="admonition attention latest-notice">
34-
<p class="first admonition-title">Attention</p>
34+
<p class="first admonition-title">Attention: Here be dragons</p>
3535
<p>
36-
You are reading the <code class="docutils literal notranslate"><span class="pre">latest</span></code>
37-
(unstable) version of this documentation, which may document features not available
38-
or compatible with Godot 3.x.
36+
This is the <code class="docutils literal notranslate"><span class="pre">latest</span></code>
37+
(unstable) version of this documentation, which may document features
38+
not available in or compatible with released stable versions of Godot.
3939
</p>
4040
<p class="last latest-notice-link">
4141
Checking the stable version of the documentation...
4242
</p>
4343
</div>
4444
{% endif %}
4545

46-
{% if godot_show_article_status %}
46+
{% if godot_show_article_status and not godot_is_latest %}
4747
<div class="admonition tip article-status">
48+
{% if meta and meta.get('article_outdated') == 'True' %}
4849
<p class="first admonition-title">Work in progress</p>
4950
<p>
50-
Godot documentation is being updated to reflect the latest changes in version
51-
<code class="docutils literal notranslate">{{ godot_version }}</code>. Some documentation pages may
52-
still state outdated information. This banner will tell you if you're reading one of such pages.
51+
The content of this page was not yet updated for Godot
52+
<code class="docutils literal notranslate">{{ godot_version }}</code>
53+
and may be <strong>outdated</strong>. If you know how to improve this page or you can confirm
54+
that it's up to date, feel free to <a href="https://github.com/godotengine/godot-docs">open a pull request</a>.
5355
</p>
56+
{% else %}
57+
<p class="first admonition-title">Up to date</p>
5458
<p>
55-
{% if meta and meta.get('article_outdated') == 'True' %}
56-
The contents of this page can be <strong>outdated</strong>. If you know how to improve this page or you can confirm
57-
that it's up to date, feel free to <a href="https://github.com/godotengine/godot-docs">open a pull request</a>.
58-
{% else %}
59-
The contents of this page are <strong>up to date</strong>. If you can still find outdated information, please
60-
<a href="https://github.com/godotengine/godot-docs">open an issue</a>.
61-
{% endif %}
59+
This page is <strong>up to date</strong> for Godot <code class="docutils literal notranslate">{{ godot_version }}</code>.
60+
If you still find outdated information, please <a href="https://github.com/godotengine/godot-docs">open an issue</a>.
6261
</p>
62+
{% endif %}
6363
</div>
6464
{% endif %}
6565
</div>

0 commit comments

Comments
 (0)