2011-07-04 23:56:38 +04:00
|
|
|
<%= wiki_page_breadcrumb(@page) %>
|
|
|
|
|
2009-04-21 16:19:56 +04:00
|
|
|
<h2><%=h @page.pretty_title %></h2>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2010-10-29 01:25:38 +04:00
|
|
|
<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
|
2007-05-26 21:22:27 +04:00
|
|
|
<%= f.hidden_field :version %>
|
2011-11-18 20:25:00 +04:00
|
|
|
<% if @section %>
|
|
|
|
<%= hidden_field_tag 'section', @section %>
|
|
|
|
<%= hidden_field_tag 'section_hash', @section_hash %>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= error_messages_for 'content' %>
|
2008-03-05 14:14:35 +03:00
|
|
|
|
2011-11-18 20:25:00 +04:00
|
|
|
<p><%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
|
2007-04-25 19:06:20 +04:00
|
|
|
<p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
|
2010-02-28 12:43:13 +03:00
|
|
|
<p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= submit_tag l(:button_save) %>
|
2011-09-14 12:37:43 +04:00
|
|
|
<%= link_to_remote l(:label_preview),
|
2010-10-27 20:27:06 +04:00
|
|
|
{ :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
|
2010-10-29 01:25:38 +04:00
|
|
|
:method => :post,
|
2007-03-12 20:59:02 +03:00
|
|
|
:update => 'preview',
|
2007-09-07 01:56:40 +04:00
|
|
|
:with => "Form.serialize('wiki_form')",
|
2008-02-11 23:45:46 +03:00
|
|
|
:complete => "Element.scrollTo('preview')"
|
2007-10-05 22:05:41 +04:00
|
|
|
}, :accesskey => accesskey(:preview) %></p>
|
2007-08-25 18:51:06 +04:00
|
|
|
<%= wikitoolbar_for 'content_text' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
|
2007-08-25 18:51:06 +04:00
|
|
|
<div id="preview" class="wiki"></div>
|
2007-09-06 21:06:07 +04:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= stylesheet_link_tag 'scm' %>
|
2011-04-12 23:22:44 +04:00
|
|
|
<%= robot_exclusion_tag %>
|
2007-09-06 21:06:07 +04:00
|
|
|
<% end %>
|
2007-09-08 00:52:45 +04:00
|
|
|
|
2011-10-02 22:45:17 +04:00
|
|
|
<% html_title @page.pretty_title %>
|