implement MOTD below navbar
This commit is contained in:
parent
722135e945
commit
b8f2dc6a56
@ -1,6 +1,9 @@
|
|||||||
twig:
|
twig:
|
||||||
default_path: '%kernel.project_dir%/templates'
|
default_path: '%kernel.project_dir%/templates'
|
||||||
|
globals:
|
||||||
|
motd: '%env(MOTD)%'
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
twig:
|
twig:
|
||||||
strict_variables: true
|
strict_variables: true
|
||||||
|
|
||||||
|
|||||||
@ -18,5 +18,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
@ -38,3 +38,13 @@
|
|||||||
</h3>
|
</h3>
|
||||||
</ul>
|
</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