课程通知评论显示

gitlab
sw 10 years ago
parent c07f66776c
commit b7c04207e1

@ -25,7 +25,7 @@
</div> </div>
<% if @news.commentable? %> <% if @news.commentable? %>
<div class="msg_box"> <div class="msg_box fl">
<h4><%= l(:label_comment_add) %></h4> <h4><%= l(:label_comment_add) %></h4>
<%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form") do %> <%= form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form") do %>
<div class="box" id="news_comment"> <div class="box" id="news_comment">
@ -43,7 +43,7 @@
<% end %> <% end %>
</div> </div>
<% end %> <% end %>
<div class="cl"></div>
<% comments = @comments.reverse %> <% comments = @comments.reverse %>
<% comments.each do |comment| %> <% comments.each do |comment| %>
<% next if comment.new_record? %> <% next if comment.new_record? %>

Loading…
Cancel
Save