Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

fixed the generated flash template for bootstrap 4 #1029

Merged
merged 2 commits into from
Apr 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions generators/newapp/templates/templates/_flash.html.tmpl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<%= if (len(flash) > 0) { %>
<div class="row">
<div class="col-md-12">
<%= for (k, messages) in flash { %>
<%= for (msg) in messages { %>
<div class="alert alert-<%= k %>" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<%= msg %>
<%= msg %>
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<% } %>
<% } %>
</div>
</div>
<% } %>