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