mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
15 lines
415 B
Text
15 lines
415 B
Text
<% 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.select {|k| [:success, :error, :errors].include?(k)}.each do |key| %>
|
|
<%== flash[key] %>
|
|
<% end %>
|
|
</p>
|
|
</div>
|
|
<% end %>
|