Permalink
Browse files

Made flash warnings visible and styled

  • Loading branch information...
jakeboxer committed Feb 4, 2010
1 parent 3b7999d commit 0ba6601b6c8c31262b9983fe8680031183c52069
Showing with 6 additions and 2 deletions.
  1. +4 −1 app/views/layouts/public.html.erb
  2. +2 −1 public/stylesheets/base.css
@@ -26,8 +26,11 @@
</div>
<div class="grid_16" id="content">
+ <% if flash[:warning] %>
+ <p id="flash-warning"><%=h flash[:warning] %></p>
+ <% end %>
<% if flash[:notice] %>
- <p id="flash-notice"><%= flash[:notice] %></p>
+ <p id="flash-notice"><%=h flash[:notice] %></p>
<% end %>
<%= yield %>
</div>
@@ -27,7 +27,8 @@ label {
/* Rails notices */
-#errorExplanation {
+#errorExplanation,
+#flash-warning {
background-color: #fbb;
padding: 16px 24px;
}

0 comments on commit 0ba6601

Please sign in to comment.