From fc697d3cafc05bc7c0d7007ba2927a97ed68b618 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Fri, 19 Aug 2016 15:37:17 +0200 Subject: [PATCH] Add cancel button to edit wiki page --- app/views/wiki/edit.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb index d5ec1b6f39..b30efe94aa 100644 --- a/app/views/wiki/edit.html.erb +++ b/app/views/wiki/edit.html.erb @@ -49,6 +49,9 @@ See doc/COPYRIGHT.rdoc for more details.
<%= f.button t(:button_save), class: 'button -highlight -with-icon icon-checkmark' %> + <%= link_to t(:button_cancel), + { controller: '/wiki', action: 'show', project_id: @project, id: @page }, + class: 'button' %> <%= preview_link preview_project_wiki_path(@project, @page), 'wiki_form-preview' %> <%= wikitoolbar_for 'content_text' %> <% end %>