Display error message from a flash at the top of the page

This commit is contained in:
Alexey Verkhovsky 2005-01-18 00:27:28 +00:00
parent 73552b36a0
commit b9737747f2
2 changed files with 10 additions and 0 deletions

View file

@ -47,6 +47,10 @@
<% end %> <% end %>
</h1> </h1>
<% if @flash[:error] %> <div id="error" class="error">
<hr/><p><%= @flash[:error].to_s %></p><hr/></div>
<% end %>
<%= render 'navigation' unless @web.nil? || @hide_navigation %> <%= render 'navigation' unless @web.nil? || @hide_navigation %>
<%= @content_for_layout %> <%= @content_for_layout %>

View file

@ -137,6 +137,12 @@ ol.setup li {
background: lightgreen; background: lightgreen;
} }
.error {
color: darkred;
font-style: italic;
width: 450px;
}
#TextileHelp table { #TextileHelp table {
margin-bottom: 0; margin-bottom: 0;
} }