| 1 | Index: /Users/lboje/Documents/workspace/afi/vendor/plugins/streamlined/templates/shared/_notice.rhtml |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- /Users/lboje/Documents/workspace/afi/vendor/plugins/streamlined/templates/shared/_notice.rhtml (revision 877) |
|---|
| 4 | +++ /Users/lboje/Documents/workspace/afi/vendor/plugins/streamlined/templates/shared/_notice.rhtml (working copy) |
|---|
| 5 | @@ -1,3 +1,11 @@ |
|---|
| 6 | -<% if flash[:notice] -%> |
|---|
| 7 | - <div id="notice"><%= flash[:notice] %></div> |
|---|
| 8 | -<% end -%> |
|---|
| 9 | \ No newline at end of file |
|---|
| 10 | +<% for name in [:error, :warning, :notice, :info, :note] %> |
|---|
| 11 | + <% if flash[name] %> |
|---|
| 12 | + <div class="flash_<%=name.to_s %>"> |
|---|
| 13 | + <p class="<%= "#{name.to_s}-message message" %>" > |
|---|
| 14 | + <%= flash[name] %> |
|---|
| 15 | + </p> |
|---|
| 16 | + </div> |
|---|
| 17 | + <% end %> |
|---|
| 18 | +<% end %> |
|---|
| 19 | +<%flash.clear%> |
|---|