2007-11-24 15:25:07 +03:00
|
|
|
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %></h2>
|
|
|
|
|
2008-03-07 20:49:44 +03:00
|
|
|
<% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
2008-03-05 18:41:54 +03:00
|
|
|
<%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %>
|
2007-11-24 15:25:07 +03:00
|
|
|
<%= submit_tag l(:button_save) %>
|
2008-03-07 20:49:44 +03:00
|
|
|
<%= link_to_remote l(:label_preview),
|
|
|
|
{ :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
|
|
|
|
:method => 'post',
|
|
|
|
:update => 'preview',
|
|
|
|
:with => "Form.serialize('message-form')",
|
|
|
|
:complete => "Element.scrollTo('preview')"
|
|
|
|
}, :accesskey => accesskey(:preview) %>
|
2007-11-24 15:25:07 +03:00
|
|
|
<% end %>
|
2008-03-07 20:49:44 +03:00
|
|
|
<div id="preview" class="wiki"></div>
|