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