Applied the flash notices patch by Matt Jones (slightly edited).
flash[:notice] and flash[:error] are now used for notice/error messages. git-svn-id: http://redmine.rubyforge.org/svn/trunk@600 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -138,8 +138,9 @@
|
||||
</div>
|
||||
|
||||
<div id="content">
|
||||
<% if flash[:notice] %><p style="color: green"><%= flash[:notice] %></p><% end %>
|
||||
<%= yield %>
|
||||
<%= content_tag('div', flash[:error], :id => 'flash', :class => 'error') if flash[:error] %>
|
||||
<%= content_tag('div', flash[:notice], :id => 'flash', :class => 'notice') if flash[:notice] %>
|
||||
<%= yield %>
|
||||
</div>
|
||||
|
||||
<div id="ajax-indicator" style="display:none;">
|
||||
@@ -152,4 +153,4 @@
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user