mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Fix for flash dumping all keys
This commit is contained in:
parent
746f0b48e0
commit
cc476e5b15
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
<% if flash.keys.length > 0 %>
|
<% if flash.keys.length > 0 %>
|
||||||
<div class="alert alert-block alert-<%= flash.keys.first %> <%= opts[:centered] ? 'txt-Center' : '' %>">
|
<div class="alert alert-block alert-<%= flash.keys.first %> <%= opts[:centered] ? 'txt-Center' : '' %>">
|
||||||
<p>
|
<p>
|
||||||
<% flash.keys.each do |key| %>
|
<% flash.keys.select {|k| [:success, :error, :errors].include?(k)}.each do |key| %>
|
||||||
<%== flash[key] %>
|
<%== flash[key] %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue