1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2026-01-04 10:27:05 +00:00

Fix for flashes not clearing bug

This commit is contained in:
James Hillyerd
2017-01-21 19:31:39 -08:00
parent 63a76696bf
commit c346372c85
4 changed files with 40 additions and 33 deletions

View File

@@ -69,9 +69,9 @@
</nav>
<div class="container">
{{with .ctx.Session.Flashes "errors"}}
{{with .errorFlash}}
<div class="alert alert-danger">
<p>Please fix the following errors and resubmit:<p>
<p>Please fix the following errors and try again:<p>
<ul>
{{range .}}
<li>{{.}}</li>

View File

@@ -64,16 +64,6 @@ $(document).ready(function() {
</div>
</div>
<div id="message-container" class="col-md-9">
{{with .ctx.Session.Flashes "errors"}}
<div class="errors">
<p>Please fix the following errors and resubmit:<p>
<ul>
{{range .}}
<li>{{.}}</li>
{{end}}
</ul>
</div>
{{end}}
<div id="message-content">
<p>Select a message at left, or enter a different username into the box on upper right.</p>
</div>