annotate app/views/messages/edit.rhtml @ 507:0c939c159af4
redmine-1.2
Update to Redmine 1.2.1 on 1.2-stable branch (Redmine SVN rev 6270)
author |
Chris Cannam |
date |
Thu, 14 Jul 2011 10:32:19 +0100 |
parents |
051f544170fe |
children |
|
rev |
line source |
Chris@0
|
1 <h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=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 %>
|