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)
33 33
<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
34 34
</div>
35 35

  
36
<p><%= submit_tag l(:button_save) %>
37
   <%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %></p>
36
<p>
37
  <%= submit_tag l(:button_save) %>
38
   <%= preview_link({:controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title }, 'wiki_form') %>
39
   <% unless @page.new_record? && @page.parent.nil? %>
40
     | <%= link_to l(:button_cancel), @page.new_record? ? @page.parent : @page %>
41
  <% end %>
42
 </p>
38 43
<%= wikitoolbar_for 'content_text' %>
39 44
<% end %>
40 45

  
(3-3/3)