From 372220d35b344a43352e2176dfb4c377a53f0930 Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Wed, 17 Oct 2012 00:27:47 +0300 Subject: [PATCH] WebEditor: Cancel button. Confirm #1705 --- app/views/tree/edit.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/tree/edit.html.haml b/app/views/tree/edit.html.haml index 0ecd22e7..fdd334a3 100644 --- a/app/views/tree/edit.html.haml +++ b/app/views/tree/edit.html.haml @@ -5,8 +5,6 @@ %i.icon-file %span.file_name = "#{@tree.path.force_encoding('utf-8')} (#{@ref})" - %span.options - = link_to "cancel editing", project_tree_path(@project, @id), class: "btn very_small" .file_content.code #editor= @tree.data @@ -18,6 +16,7 @@ = hidden_field_tag 'last_commit', @last_commit = hidden_field_tag 'content', '', :id => :file_content = button_tag "Commit", class: 'btn save-btn' + = link_to "Cancel", project_tree_path(@project, @id), class: "btn cancel-btn", confirm: "Are you sure?" :javascript var editor = ace.edit("editor");