summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-24 06:51:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-24 06:51:26 +0000
commita371c8d850a2d1941e34fcf908d549438fdf72df (patch)
tree4b016ba1273fd1a32ab6012cff23a798463a8f7c /app/views/wiki
parent68620da79ab51c808e6ba1b1cfa496494760ee47 (diff)
downloadredmine-a371c8d850a2d1941e34fcf908d549438fdf72df.tar.gz
redmine-a371c8d850a2d1941e34fcf908d549438fdf72df.zip
Add cancel button during edition of a wiki page (#4285).
git-svn-id: http://svn.redmine.org/redmine/trunk@14734 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/edit.html.erb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb
index 566e96029..a1fc3d005 100644
--- a/app/views/wiki/edit.html.erb
+++ b/app/views/wiki/edit.html.erb
@@ -33,8 +33,11 @@
<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') %>
+ | <%= link_to l(:button_cancel), wiki_page_edit_cancel_path(@page) %>
+ </p>
<%= wikitoolbar_for 'content_text' %>
<% end %>