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) %>
|
2011-05-30 22:52:25 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2008-03-07 20:49:44 +03:00
|
|
|
{ :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>
|
2011-02-20 16:11:10 +03:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag 'scm' %>
|
|
|
|
<% end %>
|