2015-05-08 13:04:25 +08:00
|
|
|
|
|
|
|
<% if topic.project %>
|
|
|
|
<%#= board_breadcrumb(@message) %>
|
|
|
|
<!--<h3><%#= avatar(@topic.author, :size => "24") %><span style = "width:100%;word-break:break-all;word-wrap: break-word;"><%#=h @topic.subject %></span></h3>-->
|
2015-05-21 16:35:53 +08:00
|
|
|
<div class="talk_new ml15" name='container_board'>
|
2015-05-08 13:04:25 +08:00
|
|
|
<ul>
|
|
|
|
<%= form_for topic, { :as => :message,
|
|
|
|
:url => {:controller => 'messages',:action => 'edit', :is_board => 'true',:id => topic.id, :board_id => topic.board_id},
|
2015-05-20 17:38:40 +08:00
|
|
|
:html => {:multipart => true, :name=>'message-form',
|
2015-05-08 13:04:25 +08:00
|
|
|
:id => 'message-form' + topic.id.to_s,
|
|
|
|
:method => :post}
|
|
|
|
} do |f| %>
|
|
|
|
<%= render :partial => 'form_project',
|
2015-05-11 16:23:15 +08:00
|
|
|
:locals => {:f => f, :replying => !topic.parent.nil?, :topic => topic} %>
|
2015-05-20 17:38:40 +08:00
|
|
|
<a href="javascript:void(0)" name='submitbtn' class="blue_btn fl c_white" ><%= l(:button_submit)%></a>
|
2015-05-11 16:23:15 +08:00
|
|
|
<a href="javascript:void(0)" onclick="show_newtalk1('#about_newtalk<%= topic.id%>');" class="blue_btn grey_btn fl c_white"><%= l(:button_cancel) %></a>
|
|
|
|
<%#= link_to l(:button_cancel), board_message_url(topic.board, topic.root, :r => (topic.parent_id && topic.id)), :class => "blue_btn grey_btn fl c_white" %>
|
2015-05-08 13:04:25 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% elsif topic.course %>
|
|
|
|
<%#= course_board_breadcrumb(@message) %>
|
2015-05-21 16:35:53 +08:00
|
|
|
<div class="talk_new ml15" name='container_board'>
|
2015-05-08 13:04:25 +08:00
|
|
|
<ul>
|
|
|
|
<%= form_for topic, {
|
|
|
|
:as => :message,
|
|
|
|
:url => {:controller => 'messages',:action => 'edit', :is_board => 'true',:id => topic.id, :board_id => topic.board_id},
|
2015-05-22 11:09:43 +08:00
|
|
|
:html => {:multipart => true, :name=>'message-form',
|
2015-05-08 13:04:25 +08:00
|
|
|
:id => 'message-form' + topic.id.to_s,
|
|
|
|
:method => :post}
|
|
|
|
} do |f| %>
|
|
|
|
<%= render :partial => 'form_course',
|
2015-05-11 16:23:15 +08:00
|
|
|
:locals => {:f => f, :replying => !topic.parent.nil?, :topic => topic} %>
|
2015-05-22 11:09:43 +08:00
|
|
|
<a href="javascript:void(0)" name='submitbtn' class="blue_btn fl c_white"><%= l(:button_submit)%></a>
|
2015-05-14 16:59:43 +08:00
|
|
|
<a href="javascript:void(0)" onclick="show_newtalk1('#about_newtalk<%= topic.id%>');" class="blue_btn grey_btn fl c_white"><%= l(:button_cancel) %></a>
|
2015-05-08 13:04:25 +08:00
|
|
|
|
2015-05-14 16:59:43 +08:00
|
|
|
<% end %>
|
2015-05-08 13:04:25 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="preview" class="wiki"></div>
|