2014-06-18 16:45:33 +08:00
|
|
|
<% if @message.project %>
|
|
|
|
<%= board_breadcrumb(@message) %>
|
|
|
|
<% elsif @message.course %>
|
|
|
|
<%= course_board_breadcrumb(@message) %>
|
|
|
|
<% end %>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2014-08-28 17:30:08 +08:00
|
|
|
<h3><%= avatar(@topic.author, :size => "24") %><span style = "width:100%;word-break:break-all;word-wrap: break-word;"><%=h @topic.subject %></span></h3>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
|
|
|
<%= form_for @message, {
|
|
|
|
:as => :message,
|
|
|
|
:url => {:action => 'edit'},
|
|
|
|
:html => {:multipart => true,
|
|
|
|
:id => 'message-form',
|
|
|
|
:method => :post}
|
|
|
|
} do |f| %>
|
|
|
|
<%= render :partial => 'form',
|
|
|
|
:locals => {:f => f, :replying => !@message.parent.nil?} %>
|
2014-12-18 16:02:33 +08:00
|
|
|
<a href="#" onclick="if(regexSubject()&®exContent()){$('#message-form').submit();}" class="ButtonColor m3p10">
|
2014-11-25 10:52:07 +08:00
|
|
|
<%= l(:button_save) %>
|
|
|
|
</a>
|
|
|
|
<%= link_to l(:button_cancel), board_message_url(@message.board, @message.root, :r => (@message.parent_id && @message.id)), :class => "ButtonColor m3p10" %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
|
|
|
<div id="preview" class="wiki"></div>
|