Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
372220d3
Commit
372220d3
authored
Oct 17, 2012
by
Valeriy Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WebEditor: Cancel button. Confirm #1705
parent
234eb7a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/views/tree/edit.html.haml
app/views/tree/edit.html.haml
+1
-2
No files found.
app/views/tree/edit.html.haml
View file @
372220d3
...
...
@@ -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
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment