mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
Partial for new flash code
This commit is contained in:
parent
ae1f3a81e3
commit
8d5a1e95f1
1 changed files with 15 additions and 0 deletions
15
views/_flash.erb
Normal file
15
views/_flash.erb
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<% if @error %>
|
||||||
|
<div class="alert alert-block alert-error">
|
||||||
|
<p><%== @error %></p>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<% if flash.keys.length > 0 %>
|
||||||
|
<div class="alert alert-block alert-<%= flash.keys.first %> <%= opts[:centered] ? 'txt-Center' : '' %>">
|
||||||
|
<p>
|
||||||
|
<% flash.keys.each do |key| %>
|
||||||
|
<%== flash[key] %>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
Loading…
Add table
Reference in a new issue