You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

edit.html.erb 1.2KB

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