2007-03-12 20:59:02 +03:00
|
|
|
<h2><%= @page.pretty_title %></h2>
|
|
|
|
|
|
|
|
<% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:id => 'wiki_form'} do |f| %>
|
2007-05-26 21:22:27 +04:00
|
|
|
<%= f.hidden_field :version %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= error_messages_for 'content' %>
|
|
|
|
<div class="contextual">
|
|
|
|
<%= l(:setting_text_formatting) %>:
|
2007-12-04 21:14:09 +03:00
|
|
|
<%= link_to l(:label_help), '/help/wiki_syntax.html',
|
|
|
|
:onclick => "window.open('#{ url_for '/help/wiki_syntax.html' }', '', 'resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes'); return false;" %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2007-10-05 22:05:41 +04:00
|
|
|
<p><%= f.text_area :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>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><%= submit_tag l(:button_save) %>
|
|
|
|
<%= link_to_remote l(:label_preview),
|
2007-04-04 02:24:59 +04:00
|
|
|
{ :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title },
|
2007-08-25 18:51:06 +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')",
|
|
|
|
:complete => "location.href='#preview-top'"
|
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-09-07 01:56:40 +04:00
|
|
|
<a name="preview-top"></a>
|
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' %>
|
|
|
|
<% end %>
|
2007-09-08 00:52:45 +04:00
|
|
|
|
|
|
|
<% set_html_title @page.pretty_title %>
|