Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
34e20c4373
commit
5e57a1a9d9
457 files changed
+20215
-5352
No files matched your search
@@ -6,4 +6,4 @@
|
||||
|
||||
<%= link_to l(:field_start_page), {:action => 'show', :id => nil} %><br />
|
||||
<%= link_to l(:label_index_by_title), {:action => 'index'} %><br />
|
||||
<%= link_to l(:label_index_by_date), {:action => 'date_index'} %><br />
|
||||
<%= link_to l(:label_index_by_date), {:controller => 'wiki', :project_id => @project, :action => 'date_index'} %><br />
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<h2><%=h @page.pretty_title %></h2>
|
||||
|
||||
<% form_tag({}, :method => :delete) do %>
|
||||
<%= form_tag({}, :method => :delete) do %>
|
||||
<div class="box">
|
||||
<p><strong><%= l(:text_wiki_page_destroy_question, :descendants => @descendants_count) %></strong></p>
|
||||
<p><label><%= radio_button_tag 'todo', 'nullify', true %> <%= l(:text_wiki_page_nullify_children) %></label><br />
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<h2><%= h @page.pretty_title %></h2>
|
||||
|
||||
<% form_for :content, @content,
|
||||
<%= form_for @content, :as => :content,
|
||||
:url => {:action => 'update', :id => @page.title},
|
||||
:html => {:method => :put, :multipart => true, :id => 'wiki_form'} do |f| %>
|
||||
<%= f.hidden_field :version %>
|
||||
@@ -16,10 +16,10 @@
|
||||
<%= text_area_tag 'content[text]', @text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %>
|
||||
|
||||
<% if @page.safe_attribute_names.include?('parent_id') && @wiki.pages.any? %>
|
||||
<% fields_for @page do |fp| %>
|
||||
<%= fields_for @page do |fp| %>
|
||||
<p>
|
||||
<label><%= l(:field_parent_title) %></label>
|
||||
<%= fp.select :parent_id, "<option value=''></option>" + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent) %>
|
||||
<%= fp.select :parent_id, content_tag('option', '', :value => '') + wiki_page_options_for_select(@wiki.pages.all(:include => :parent) - @page.self_and_descendants, @page.parent) %>
|
||||
</p>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
|
||||
<h3><%= l(:label_history) %></h3>
|
||||
|
||||
<% form_tag({:controller => 'wiki', :action => 'diff', :project_id => @page.project, :id => @page.title}, :method => :get) do %>
|
||||
<%= form_tag({:controller => 'wiki', :action => 'diff',
|
||||
:project_id => @page.project, :id => @page.title},
|
||||
:method => :get) do %>
|
||||
<table class="list wiki-page-versions">
|
||||
<thead><tr>
|
||||
<th>#</th>
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
|
||||
<%= error_messages_for 'page' %>
|
||||
|
||||
<% labelled_form_for :wiki_page, @page,
|
||||
<%= labelled_form_for :wiki_page, @page,
|
||||
:url => { :action => 'rename' },
|
||||
:html => { :method => :post } do |f| %>
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :title, :required => true, :size => 100 %></p>
|
||||
<p><%= f.check_box :redirect_existing_links %></p>
|
||||
<p><%= f.select :parent_id,
|
||||
"<option value=''></option>" +
|
||||
content_tag('option', '', :value => '') +
|
||||
wiki_page_options_for_select(
|
||||
@wiki.pages.all(:include => :parent) - @page.self_and_descendants,
|
||||
@page.parent),
|
||||
|
||||
@@ -42,7 +42,10 @@
|
||||
<div id="wiki_add_attachment">
|
||||
<p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
|
||||
:id => 'attach_files_link' %></p>
|
||||
<% form_tag({ :controller => 'wiki', :action => 'add_attachment', :project_id => @project, :id => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
|
||||
<%= form_tag({:controller => 'wiki', :action => 'add_attachment',
|
||||
:project_id => @project, :id => @page.title},
|
||||
:multipart => true, :id => "add_attachment_form",
|
||||
:style => "display:none;") do %>
|
||||
<div class="box">
|
||||
<p><%= render :partial => 'attachments/form' %></p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user