Skip to content

Commit f47af1f

Browse files
committed
Only show warning box if page is outdated
1 parent 19f5643 commit f47af1f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

_templates/layout.html

+2-10
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,15 @@
3434
</div>
3535
{% endif %}
3636

37-
{% if godot_show_article_status and not godot_is_latest %}
38-
<div class="admonition tip article-status">
39-
{% if meta and meta.get('article_outdated') == 'True' %}
37+
{% if godot_show_article_status and not godot_is_latest and meta and meta.get('article_outdated') == 'True' %}
38+
<div class="admonition attention article-status">
4039
<p class="first admonition-title">Work in progress</p>
4140
<p>
4241
The content of this page was not yet updated for Godot
4342
<code class="docutils literal notranslate">{{ godot_version }}</code>
4443
and may be <strong>outdated</strong>. If you know how to improve this page or you can confirm
4544
that it's up to date, feel free to <a href="https://github.com/godotengine/godot-docs">open a pull request</a>.
4645
</p>
47-
{% else %}
48-
<p class="first admonition-title">Up to date</p>
49-
<p>
50-
This page is <strong>up to date</strong> for Godot <code class="docutils literal notranslate">{{ godot_version }}</code>.
51-
If you still find outdated information, please <a href="https://github.com/godotengine/godot-docs">open an issue</a>.
52-
</p>
53-
{% endif %}
5446
</div>
5547
{% endif %}
5648
</div>

0 commit comments

Comments
 (0)