2012-07-31 21:17:52 +04:00
|
|
|
<%= board_breadcrumb(@message) %>
|
2012-07-28 21:00:45 +04:00
|
|
|
|
|
|
|
<h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
|
2007-11-24 15:25:07 +03:00
|
|
|
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= form_for @message, {
|
|
|
|
:as => :message,
|
|
|
|
:url => {:action => 'edit'},
|
|
|
|
:html => {:multipart => true,
|
|
|
|
:id => 'message-form',
|
|
|
|
:method => :post}
|
|
|
|
} do |f| %>
|
2012-01-04 16:55:07 +04:00
|
|
|
<%= render :partial => 'form',
|
|
|
|
:locals => {:f => f, :replying => !@message.parent.nil?} %>
|
2007-11-24 15:25:07 +03:00
|
|
|
<%= submit_tag l(:button_save) %>
|
2012-07-18 21:47:19 +04:00
|
|
|
<%= preview_link({:controller => 'messages', :action => 'preview', :board_id => @board, :id => @message}, 'message-form') %>
|
2007-11-24 15:25:07 +03:00
|
|
|
<% end %>
|
2008-03-07 20:49:44 +03:00
|
|
|
<div id="preview" class="wiki"></div>
|