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:
parent
c337a31815
commit
cf5dbf03cf
13
_includes/overrides/banner.html
Normal file
13
_includes/overrides/banner.html
Normal 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 %}
|
3
_includes/overrides/partials/header.html
Normal file
3
_includes/overrides/partials/header.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% include "banner.html" %}
|
||||
|
||||
{{ super }}
|
1
_includes/overrides/partials/outdated.html
Normal file
1
_includes/overrides/partials/outdated.html
Normal file
@ -0,0 +1 @@
|
||||
<!-- Empty "outdated" warning, we will handle this in 'banner.html' -->
|
Loading…
x
Reference in New Issue
Block a user