implement setting bootstrap colors
This commit is contained in:
parent
688e7fba7a
commit
ae1cb0e00c
@ -2,6 +2,7 @@ twig:
|
|||||||
default_path: '%kernel.project_dir%/templates'
|
default_path: '%kernel.project_dir%/templates'
|
||||||
globals:
|
globals:
|
||||||
motd: '%env(MOTD)%'
|
motd: '%env(MOTD)%'
|
||||||
|
motdLevel: '%env(MOTDLEVEL)%'
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
twig:
|
twig:
|
||||||
|
|||||||
@ -40,7 +40,12 @@
|
|||||||
</div>
|
</div>
|
||||||
{# Display MOTD, if one is set #}
|
{# Display MOTD, if one is set #}
|
||||||
{% if motd is defined and motd is not empty %}
|
{% if motd is defined and motd is not empty %}
|
||||||
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
{% if motdLevel is defined and motdLevel is not empty %}
|
||||||
|
|
||||||
|
{% else %}
|
||||||
|
{% set motdLevel = "info" %}
|
||||||
|
{% endif %}
|
||||||
|
<div class="alert alert-{{ motdLevel }} alert-dismissible fade show" role="alert">
|
||||||
<div class="row justify-content-end">
|
<div class="row justify-content-end">
|
||||||
<div class="col-12 justify-content-center">
|
<div class="col-12 justify-content-center">
|
||||||
<p class="text-center">{{ motd }}</p>
|
<p class="text-center">{{ motd }}</p>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user