Skip to content

Commit

Permalink
Move test server alert to app header
Browse files Browse the repository at this point in the history
Co-Authored-by: Pascal Repond <[email protected]>
  • Loading branch information
PascalRepond committed Jun 22, 2022
1 parent 6e4f3d9 commit 4ee11c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
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
9 changes: 9 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,15 @@
{% 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>
</h5>
{% endif %}
{% 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

0 comments on commit 4ee11c6

Please sign in to comment.