Skip to content

Commit

Permalink
Use warning-colored admonition for outdated pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tetrapod00 committed Dec 15, 2024
1 parent 19f5643 commit b1212cd
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions _templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,25 @@
{% 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' %}
<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>
<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>
</div>
{% 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>
<div class="admonition tip article-status">
<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>
</div>
{% endif %}
</div>
{% endif %}
</div>
{% endif %}
Expand Down

0 comments on commit b1212cd

Please sign in to comment.