annotate .svn/pristine/6f/6fc3080d660626f975ab483d311285aeb4746301.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <%= wiki_page_breadcrumb(@page) %>
Chris@909 2
Chris@909 3 <h2><%=h @page.pretty_title %></h2>
Chris@909 4
Chris@909 5 <% form_for :content, @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
Chris@909 6 <%= f.hidden_field :version %>
Chris@909 7 <% if @section %>
Chris@909 8 <%= hidden_field_tag 'section', @section %>
Chris@909 9 <%= hidden_field_tag 'section_hash', @section_hash %>
Chris@909 10 <% end %>
Chris@909 11 <%= error_messages_for 'content' %>
Chris@909 12
Chris@909 13 <p><%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
Chris@909 14 <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
Chris@909 15 <p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
Chris@909 16
Chris@909 17 <p><%= submit_tag l(:button_save) %>
Chris@909 18 <%= link_to_remote l(:label_preview),
Chris@909 19 { :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title },
Chris@909 20 :method => :post,
Chris@909 21 :update => 'preview',
Chris@909 22 :with => "Form.serialize('wiki_form')",
Chris@909 23 :complete => "Element.scrollTo('preview')"
Chris@909 24 }, :accesskey => accesskey(:preview) %></p>
Chris@909 25 <%= wikitoolbar_for 'content_text' %>
Chris@909 26 <% end %>
Chris@909 27
Chris@909 28 <div id="preview" class="wiki"></div>
Chris@909 29
Chris@909 30 <% content_for :header_tags do %>
Chris@909 31 <%= stylesheet_link_tag 'scm' %>
Chris@909 32 <%= robot_exclusion_tag %>
Chris@909 33 <% end %>
Chris@909 34
Chris@909 35 <% html_title @page.pretty_title %>