Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move test server alert to app header #2966

Merged
merged 1 commit into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions rero_ils/theme/templates/rero_ils/frontpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@
</div>
{% endif %}

<!-- Info message (not in production) -->
{% if not config.RERO_ILS_STATE_PRODUCTION %}
<h5 class="text-center bg-danger text-white py-2 mb-0">
{{ config.RERO_ILS_STATE_MESSAGE }}
{% if config.RERO_ILS_STATE_LINK_MESSAGE %}
<a href={{ config.RERO_ILS_STATE_LINK}} class="rero-ils-external-link text-white">{{config.RERO_ILS_STATE_LINK_MESSAGE }}</a>
{% endif %}
</h5>
{% endif %}

<!-- Block links -->
<div class="container">
<article class="row mt-md-4">
Expand Down
11 changes: 11 additions & 0 deletions rero_ils/theme/templates/rero_ils/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@
{% endfor %}
</div>
</nav>

<!-- Info message (not in production) -->
{% if not config.RERO_ILS_STATE_PRODUCTION %}
<h5 class="text-center bg-danger text-white py-2 mb-0">
{{ config.RERO_ILS_STATE_MESSAGE }}
{% if config.RERO_ILS_STATE_LINK_MESSAGE %}
<a href={{ config.RERO_ILS_STATE_LINK}} class="rero-ils-external-link text-white">{{config.RERO_ILS_STATE_LINK_MESSAGE }}</a>
{% endif %}
</h5>
{% endif %}

<!-- HIDDEN MENUS :: Only visible from medium to extra small screens == -->
<nav class="navbar-light bg-light d-lg-none d-xl-none border-bottom collapse" id="mobileHide">
<!-- User menus -->
Expand Down