mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Merge branch '158_fix_searchbar' of https://github.com/ClusterCockpit/cc-backend into 158_fix_searchbar
This commit is contained in:
commit
95b170e542
@ -1,42 +1,17 @@
|
|||||||
|
|
||||||
{{define "content"}}
|
{{define "content"}}
|
||||||
<div class="row">
|
<div class="row justify-content-center">
|
||||||
<div class="col messageCol">
|
<div class="col-4">
|
||||||
<div class="alert messageCard {{.MsgType}}" role="alert">
|
<div class="alert {{.MsgType}} p-3 text-center fs-3" role="alert">
|
||||||
{{if eq .MsgType "alert-info"}}
|
{{if eq .MsgType "alert-info"}}
|
||||||
<i class="bi-info-circle-fill messageIcon"></i>
|
<i class="bi-info-circle-fill me-3"></i>
|
||||||
<b>{{.Message}}</b>
|
|
||||||
{{else if eq .MsgType "alert-warning"}}
|
{{else if eq .MsgType "alert-warning"}}
|
||||||
<i class="bi-question-circle-fill messageIcon"></i>
|
<i class="bi-question-circle-fill me-3"></i>
|
||||||
<b>{{.Message}}</b>
|
|
||||||
{{else if eq .MsgType "alert-danger"}}
|
{{else if eq .MsgType "alert-danger"}}
|
||||||
<i class="bi-exclamation-circle-fill messageIcon"></i>
|
<i class="bi-exclamation-circle-fill me-3"></i>
|
||||||
<b>{{.Message}}</b>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{.Message}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{define "stylesheets"}}
|
|
||||||
<style>
|
|
||||||
.messageCol {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.messageCard {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 50%;
|
|
||||||
padding-top: 2rem;
|
|
||||||
padding-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.messageIcon {
|
|
||||||
font-size: 2rem;
|
|
||||||
margin-right:1rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{{end}}
|
|
Loading…
Reference in New Issue
Block a user