2015-07-08 13:47:56 +02:00
|
|
|
{{if .Flash.ErrorMsg}}
|
2024-07-16 21:30:47 +02:00
|
|
|
<div id="flash-message" class="ui negative message flash-message flash-error" hx-swap-oob="true">
|
2024-03-01 11:16:19 +01:00
|
|
|
<p>{{.Flash.ErrorMsg | SanitizeHTML}}</p>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2015-07-24 17:13:42 +02:00
|
|
|
{{end}}
|
|
|
|
{{if .Flash.SuccessMsg}}
|
2024-07-16 21:30:47 +02:00
|
|
|
<div id="flash-message" class="ui positive message flash-message flash-success" hx-swap-oob="true">
|
2024-03-01 11:16:19 +01:00
|
|
|
<p>{{.Flash.SuccessMsg | SanitizeHTML}}</p>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2015-08-06 16:48:11 +02:00
|
|
|
{{end}}
|
|
|
|
{{if .Flash.InfoMsg}}
|
2024-07-16 21:30:47 +02:00
|
|
|
<div id="flash-message" class="ui info message flash-message flash-info" hx-swap-oob="true">
|
2024-03-01 11:16:19 +01:00
|
|
|
<p>{{.Flash.InfoMsg | SanitizeHTML}}</p>
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2022-09-02 09:58:49 +02:00
|
|
|
{{if .Flash.WarningMsg}}
|
2024-07-16 21:30:47 +02:00
|
|
|
<div id="flash-message" class="ui warning message flash-message flash-warning" hx-swap-oob="true">
|
2024-03-01 11:16:19 +01:00
|
|
|
<p>{{.Flash.WarningMsg | SanitizeHTML}}</p>
|
2022-09-02 09:58:49 +02:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2024-07-16 21:30:47 +02:00
|
|
|
{{if and (not .Flash.ErrorMsg) (not .Flash.SuccessMsg) (not .Flash.InfoMsg) (not .Flash.WarningMsg) (not .IsHTMX)}}
|
2024-08-09 18:14:19 +02:00
|
|
|
<div id="flash-message" hx-swap-oob="true"></div>
|
2024-07-16 21:30:47 +02:00
|
|
|
{{end}}
|