2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 05:36:46 +00:00
Oliver cf5dbf03cf
Adding custom version information banner (#330)
* Adding custom version information banner

* Update banner text
2022-07-26 13:43:08 +10:00

14 lines
695 B
HTML

{% if config.extra.version %}
<div class='md-banner md-banner--warning'>
<div class='md-grid md-typeset'>
{% if config.extra.version == "latest" %}
This documentation is for the <em>development</em> version of InvenTree, which may be significantly different from previous stable releases.
For stable release documentation, use the version selector located in the bottom right corner of this page.
{% elif self.outdated() %}
This documentation is for an outdated version of InvenTree.
For updated release documentation, use the version selector located in the bottom right corner of this page.
{% endif %}
</div>
</div>
{% endif %}