讨论区留言编辑修改

This commit is contained in:
nwb 2014-06-18 16:45:33 +08:00
parent e17090d506
commit f0b016bcbe
2 changed files with 11 additions and 2 deletions

View File

@ -19,7 +19,12 @@
<% if !replying && !@message.new_record? && @message.safe_attribute?('board_id') %>
<p><label><%= l(:label_board) %></label><br />
<%= f.select :board_id, boards_options_for_select(@message.project.boards) %></p>
<%# modify by nwb%>
<% if @message.project %>
<%= f.select :board_id, boards_options_for_select(@message.project.boards) %></p>
<% elsif @message.course %>
<%= f.select :board_id, boards_options_for_select(@message.course.boards) %></p>
<% end %>
<% end %>
<p>

View File

@ -1,4 +1,8 @@
<%= board_breadcrumb(@message) %>
<% if @message.project %>
<%= board_breadcrumb(@message) %>
<% elsif @message.course %>
<%= course_board_breadcrumb(@message) %>
<% end %>
<h3><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h3>