implement MOTD below navbar

This commit is contained in:
Audrey Jensen 2023-07-25 21:34:20 +00:00
parent 722135e945
commit b8f2dc6a56
3 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,9 @@
twig:
default_path: '%kernel.project_dir%/templates'
globals:
motd: '%env(MOTD)%'
when@test:
twig:
strict_variables: true

View File

@ -17,6 +17,5 @@
<div class="d-flex flex-row flex-fill justify-content-between" style="background: url({{asset('images/header-left.png')}}) left center no-repeat, url({{asset('images/header-right.png')}}) 72px center no-repeat; background-size: 72px 100%, 100% 100%; "></div>
</div>
</div>
</header>

View File

@ -37,4 +37,14 @@
</a>
</h3>
</ul>
</div>
</div>
{# Display MOTD, if one is set #}
{% if motd is defined and motd is not empty %}
<div class="alert alert-info alert-dismissible fade show" role="alert">
<div class="row justify-content-end">
<div class="col-xs-12 col-lg-10 justify-content-end">
{{ motd }}
</div>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div></div>
{% endif %}