Skip to content

Commit

Permalink
Merge pull request #10411 from tetrapod00/color-code-up-to-date
Browse files Browse the repository at this point in the history
Only show warning box if page is outdated
  • Loading branch information
mhilbrunner authored Dec 21, 2024
2 parents 873c452 + f47af1f commit da1ef85
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions _templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,15 @@
</div>
{% endif %}

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

0 comments on commit da1ef85

Please sign in to comment.