To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / messages / edit.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (964 Bytes)

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