Display error message from a flash at the top of the page
This commit is contained in:
parent
73552b36a0
commit
b9737747f2
|
@ -47,6 +47,10 @@
|
|||
<% end %>
|
||||
</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 %>
|
||||
<%= @content_for_layout %>
|
||||
|
||||
|
|
|
@ -137,6 +137,12 @@ ol.setup li {
|
|||
background: lightgreen;
|
||||
}
|
||||
|
||||
.error {
|
||||
color: darkred;
|
||||
font-style: italic;
|
||||
width: 450px;
|
||||
}
|
||||
|
||||
#TextileHelp table {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue