Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorValeriy Sizov <vsv2711@gmail.com>2012-10-17 01:27:47 +0400
committerValeriy Sizov <vsv2711@gmail.com>2012-10-17 01:27:47 +0400
commit372220d35b344a43352e2176dfb4c377a53f0930 (patch)
treecaf84efda12b74689a92afcb788ea92aff526323 /app
parent234eb7a8e4de164a10f66ae388f4155310bfe659 (diff)
WebEditor: Cancel button. Confirm #1705
Diffstat (limited to 'app')
-rw-r--r--app/views/tree/edit.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/tree/edit.html.haml b/app/views/tree/edit.html.haml
index 0ecd22e72e3..fdd334a3abe 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");