@@ -1,26 +1,26 | |||
|
1 | 1 | <h2><%= link_to h(@board.name), :controller => 'boards', |
|
2 | 2 | :action => 'show', :project_id => @project, |
|
3 | 3 | :id => @board %> » <%= h @message.subject %></h2> |
|
4 | 4 | |
|
5 | 5 | <% form_for :message, @message, |
|
6 | 6 | :url => {:action => 'edit'}, |
|
7 | 7 | :html => {:multipart => true, |
|
8 | 8 | :id => 'message-form', |
|
9 | 9 | :method => :post} do |f| %> |
|
10 | 10 | <%= render :partial => 'form', |
|
11 | 11 | :locals => {:f => f, :replying => !@message.parent.nil?} %> |
|
12 | 12 | <%= submit_tag l(:button_save) %> |
|
13 | 13 | <%= link_to_remote l(:label_preview), |
|
14 | 14 | { :url => { :controller => 'messages', |
|
15 | :action => 'preview', :board_id => @board }, | |
|
15 | :action => 'preview', :board_id => @board, :id => @message }, | |
|
16 | 16 | :method => 'post', |
|
17 | 17 | :update => 'preview', |
|
18 | 18 | :with => "Form.serialize('message-form')", |
|
19 | 19 | :complete => "Element.scrollTo('preview')" |
|
20 | 20 | }, :accesskey => accesskey(:preview) %> |
|
21 | 21 | <% end %> |
|
22 | 22 | <div id="preview" class="wiki"></div> |
|
23 | 23 | |
|
24 | 24 | <% content_for :header_tags do %> |
|
25 | 25 | <%= stylesheet_link_tag 'scm' %> |
|
26 | 26 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now