Mercurial > hg > soundsoftware-site
view app/views/messages/.svn/text-base/edit.rhtml.svn-base @ 8:0c83d98252d9 yuya
* Add custom repo prefix and proper auth realm, remove auth cache (seems like an unwise feature), pass DB handle around, various other bits of tidying
author | Chris Cannam |
---|---|
date | Thu, 12 Aug 2010 15:31:37 +0100 |
parents | 513646585e45 |
children | 051f544170fe |
line wrap: on
line source
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %></h2> <% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %> <%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %> <%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), { :url => { :controller => 'messages', :action => 'preview', :board_id => @board }, :method => 'post', :update => 'preview', :with => "Form.serialize('message-form')", :complete => "Element.scrollTo('preview')" }, :accesskey => accesskey(:preview) %> <% end %> <div id="preview" class="wiki"></div>