Project

General

Profile

Feature #4285 » wiki-edit-cancel-20151003.diff

patch (move to a parent page if the the page is new page) - Go MAEDA, 2015-10-03 08:16

View differences:

app/views/wiki/edit.html.erb (working copy)
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
</div>
<p><%= submit_tag l(:button_save) %>
<%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %></p>
<p>
<%= submit_tag l(:button_save) %>
<%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %>
<% unless @page.new_record? && @page.parent.nil? %>
| <%= link_to l(:button_cancel), @page.new_record? ? @page.parent : @page %>
<% end %>
</p>
<%= wikitoolbar_for 'content_text' %>
<% end %>
(3-3/3)