2012-01-04 16:55:07 +04:00
|
|
|
<h2><%= link_to h(@board.name), :controller => 'boards',
|
|
|
|
:action => 'show', :project_id => @project,
|
|
|
|
:id => @board %> » <%= h @message.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) %>
|
2011-09-17 14:00:26 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2012-01-04 16:55:07 +04:00
|
|
|
{ :url => { :controller => 'messages',
|
2012-02-23 19:17:13 +04:00
|
|
|
:action => 'preview', :board_id => @board, :id => @message },
|
2008-03-07 20:49:44 +03:00
|
|
|
: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 %>
|