Show info/warning/error flash messages on all pages, not just the one for signing in.
This commit is contained in:
parent
155663ba5e
commit
96e449a11d
2 changed files with 13 additions and 13 deletions
|
|
@ -6,19 +6,6 @@
|
|||
<div class="fourcol"> </div>
|
||||
</div>
|
||||
|
||||
<% unless flash.empty? %>
|
||||
<div class="row">
|
||||
<div class="fourcol"> </div>
|
||||
<div class="fourcol flash">
|
||||
<%# examples: flash[:error] (:notice, ...), needs: respective css 'id' elements %>
|
||||
<% flash.each do | key, msg | %>
|
||||
<%= content_tag(:p, msg, :id => key) if flash[key] %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="fourcol"> </div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="row">
|
||||
<div class="fourcol"> </div>
|
||||
<div class="fourcol login">
|
||||
|
|
|
|||
|
|
@ -38,6 +38,19 @@
|
|||
</div>
|
||||
</div> <%# row %>
|
||||
|
||||
<% unless flash.empty? %>
|
||||
<div class="row">
|
||||
<div class="fourcol"> </div>
|
||||
<div class="fourcol flash">
|
||||
<%# examples: flash[:error] (:notice, ...), needs: respective css 'id' elements %>
|
||||
<% flash.each do | key, msg | %>
|
||||
<%= content_tag(:p, msg, :id => key) if flash[key] %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="fourcol"> </div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
<%# Footer %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue