add second flash type
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
</div>
|
||||
<div id="content">
|
||||
{{ if .Flashes }}
|
||||
<div id="flashes" class="padded mono">
|
||||
<i class="mdi mdi-alert-circle"></i> {{ index .Flashes 0 }}
|
||||
{{ $flash := index .Flashes 0 }}
|
||||
<div class="padded mono flash-{{ $flash.Type }}">
|
||||
<i class="mdi mdi-alert-circle"></i> {{ $flash.Message }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ template "content" . }}
|
||||
|
||||
@@ -102,12 +102,18 @@ a:hover {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
#flashes {
|
||||
.flash-warning {
|
||||
background-color: #fd1b1b1c;
|
||||
border-right: 2px solid #fd1b1b1c;
|
||||
border-bottom: 2px solid #fd1b1b1c;
|
||||
}
|
||||
|
||||
.flash-normal {
|
||||
background-color: #15ff5452;
|
||||
border-right: 2px solid #15ff5452;
|
||||
border-bottom: 2px solid #15ff5452;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user