annotate app/views/messages/edit.rhtml @ 1174:928c0d0f624e bug_365

Close obsolete branch bug_365
author Chris Cannam
date Fri, 03 Feb 2012 14:03:51 +0000
parents 051f544170fe
children
rev   line source
Chris@0 1 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%=h @message.subject %></h2>
Chris@0 2
Chris@0 3 <% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
Chris@0 4 <%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %>
Chris@0 5 <%= submit_tag l(:button_save) %>
Chris@0 6 <%= link_to_remote l(:label_preview),
Chris@0 7 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
Chris@0 8 :method => 'post',
Chris@0 9 :update => 'preview',
Chris@0 10 :with => "Form.serialize('message-form')",
Chris@0 11 :complete => "Element.scrollTo('preview')"
Chris@0 12 }, :accesskey => accesskey(:preview) %>
Chris@0 13 <% end %>
Chris@0 14 <div id="preview" class="wiki"></div>
Chris@245 15
Chris@245 16 <% content_for :header_tags do %>
Chris@245 17 <%= stylesheet_link_tag 'scm' %>
Chris@245 18 <% end %>