2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-14 19:25:37 +00:00

More banner fixes (#332)

* More banner fixes

- Restore original banner (search box etc)
- Make version banner dismissable
- Better CSS styling

* Disable debug
This commit is contained in:
Oliver
2022-07-26 21:36:58 +10:00
committed by GitHub
parent c23165307b
commit 0caeec0451
6 changed files with 17 additions and 7 deletions

View File

@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "main.html" %}
{% block tabs %}
{{ super() }}

View File

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block header %}
{% include "partials/version_banner.html" %}
{% include "partials/header.html" %}
{% endblock %}

View File

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

View File

@ -1,5 +1,5 @@
{% if config.version_banner %}
<div class='md-banner md-banner--warning'>
<div class='alert alert-warning alert-dismissable alert-version' role='alert'>
<div class='md-grid md-typeset'>
<small>
{% if config.readthedocs.version == 'latest' %}
@ -9,6 +9,7 @@
{% endif %}
For <em>stable</em> release documentation, use the version selector located in the bottom right corner of this page.
</small>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
</div>
{% endif %}
{% endif %}