2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-27 21:26:43 +00:00

Adding custom version information banner (#330)

* Adding custom version information banner

* Update banner text
This commit is contained in:
Oliver 2022-07-26 13:43:08 +10:00 committed by GitHub
parent c337a31815
commit cf5dbf03cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,13 @@
{% 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 %}

View File

@ -0,0 +1,3 @@
{% include "banner.html" %}
{{ super }}

View File

@ -0,0 +1 @@
<!-- Empty "outdated" warning, we will handle this in 'banner.html' -->