To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / 6f / 6fc3080d660626f975ab483d311285aeb4746301.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.46 KB)
| 1 |
<%= wiki_page_breadcrumb(@page) %> |
|---|---|
| 2 |
|
| 3 |
<h2><%=h @page.pretty_title %></h2> |
| 4 |
|
| 5 |
<% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
|
| 6 |
<%= f.hidden_field :version %> |
| 7 |
<% if @section %> |
| 8 |
<%= hidden_field_tag 'section', @section %> |
| 9 |
<%= hidden_field_tag 'section_hash', @section_hash %> |
| 10 |
<% end %> |
| 11 |
<%= error_messages_for 'content' %> |
| 12 |
|
| 13 |
<p><%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p> |
| 14 |
<p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p> |
| 15 |
<p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p> |
| 16 |
|
| 17 |
<p><%= submit_tag l(:button_save) %> |
| 18 |
<%= link_to_remote l(:label_preview), |
| 19 |
{ :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
|
| 20 |
:method => :post, |
| 21 |
:update => 'preview', |
| 22 |
:with => "Form.serialize('wiki_form')",
|
| 23 |
:complete => "Element.scrollTo('preview')"
|
| 24 |
}, :accesskey => accesskey(:preview) %></p> |
| 25 |
<%= wikitoolbar_for 'content_text' %> |
| 26 |
<% end %> |
| 27 |
|
| 28 |
<div id="preview" class="wiki"></div> |
| 29 |
|
| 30 |
<% content_for :header_tags do %> |
| 31 |
<%= stylesheet_link_tag 'scm' %> |
| 32 |
<%= robot_exclusion_tag %> |
| 33 |
<% end %> |
| 34 |
|
| 35 |
<% html_title @page.pretty_title %> |