implement MOTD below navbar
This commit is contained in:
parent
722135e945
commit
b8f2dc6a56
@ -1,6 +1,9 @@
|
||||
twig:
|
||||
default_path: '%kernel.project_dir%/templates'
|
||||
globals:
|
||||
motd: '%env(MOTD)%'
|
||||
|
||||
when@test:
|
||||
twig:
|
||||
strict_variables: true
|
||||
|
||||
|
||||
@ -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>
|
||||
@ -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 %}
|
||||
Loading…
x
Reference in New Issue
Block a user