mirror of
https://github.com/lukin/keywind.git
synced 2025-01-10 09:56:25 +00:00
Update alerts.ftl
Hi, Thanks for your nice project! I learned a lot of it! I saw that you don't apply breaks in the switch. This is necessary. check: https://freemarker.apache.org/docs/ref_directive_switch.html
This commit is contained in:
parent
fef457a0bb
commit
a195d30227
1 changed files with 4 additions and 0 deletions
|
@ -2,12 +2,16 @@
|
|||
<#switch message.type>
|
||||
<#case "error">
|
||||
<#assign color="bg-red-100 text-red-600">
|
||||
<#break>
|
||||
<#case "info">
|
||||
<#assign color="bg-blue-100 text-blue-600">
|
||||
<#break>
|
||||
<#case "success">
|
||||
<#assign color="bg-green-100 text-green-600">
|
||||
<#break>
|
||||
<#case "warning">
|
||||
<#assign color="bg-orange-100 text-orange-600">
|
||||
<#break>
|
||||
<#default>
|
||||
<#assign color="bg-blue-100 text-blue-600">
|
||||
</#switch>
|
||||
|
|
Loading…
Reference in a new issue