[donrails commit] r379 - trunk/app/views/notes/default

0 views
Skip to first unread message

codesite...@google.com

unread,
May 18, 2008, 5:44:34 PM5/18/08
to donr...@googlegroups.com
Author: yasuhiro
Date: Sun May 18 14:44:11 2008
New Revision: 379

Modified:
trunk/app/views/notes/default/noteslist.rhtml
trunk/app/views/notes/default/show_enrollment.rhtml
trunk/app/views/notes/default/show_title.rhtml

Log:
008-05-19 ARAKI Yasuhiro <a...@debian.org>

* app/views/notes/default/*.rhtml: Fix to use flash[:notice].
I'm sorry,
I lacked to change them at May.16.


Modified: trunk/app/views/notes/default/noteslist.rhtml
==============================================================================
--- trunk/app/views/notes/default/noteslist.rhtml (original)
+++ trunk/app/views/notes/default/noteslist.rhtml Sun May 18 14:44:11 2008
@@ -1,6 +1,6 @@
-<% if @notice %>
+<% if flash[:notice] %>
<div class="notice">
- <%=h @notice %>
+ <%=h flash[:notice] %>
</div> <!-- end notice -->
<% end %>


Modified: trunk/app/views/notes/default/show_enrollment.rhtml
==============================================================================
--- trunk/app/views/notes/default/show_enrollment.rhtml (original)
+++ trunk/app/views/notes/default/show_enrollment.rhtml Sun May 18
14:44:11 2008
@@ -1,4 +1,4 @@
-<% if @notice %><div class="notice"> <%= @notice %></div><% end %>
+<% if flash[:notice] %><div class="notice"> <%=
flash[:notice] %></div><% end %>
<% if @ymd3 && @ymd4 %><div class="ymd34">From <%= @ymd3 %> to <%=
@ymd4 %></div><% end %>

<% article = don_get_object(@enrollment.articles.first, 'html') %>

Modified: trunk/app/views/notes/default/show_title.rhtml
==============================================================================
--- trunk/app/views/notes/default/show_title.rhtml (original)
+++ trunk/app/views/notes/default/show_title.rhtml Sun May 18 14:44:11 2008
@@ -1,4 +1,4 @@
-<% if @notice %><div class="notice"> <%= @notice %></div><% end %>
+<% if flash[:notice] %><div class="notice"> <%=
flash[:notice] %></div><% end %>
<% if @ymd3 && @ymd4 %><div class="ymd34">From <%= @ymd3 %> to <%=
@ymd4 %></div><% end %>

<p>

Reply all
Reply to author
Forward
0 new messages