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-01-04 16:54:24 +04:00
|
|
|
<% form_for :message, @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',
|
|
|
|
:action => 'preview', :board_id => @board },
|
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 %>
|