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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
02c83f12
Commit
02c83f12
authored
Oct 10, 2012
by
Dmitriy Zaporozhets
Committed by
Valeriy Sizov
Oct 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Design improved
parent
57e2b5ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
+21
-18
app/assets/stylesheets/sections/editor.scss
app/assets/stylesheets/sections/editor.scss
+7
-7
app/views/tree/edit.html.haml
app/views/tree/edit.html.haml
+14
-11
No files found.
app/assets/stylesheets/sections/editor.scss
View file @
02c83f12
.file-editor
{
#editor
{
height
:
500px
;
width
:
9
0%
;
width
:
10
0%
;
position
:
relative
;
margin-bottom
:
20px
;
}
textarea
{
display
:
block
;
width
:
40%
;
margin
:
10px
0
10px
0
;
.editor-commit-comment
{
padding-top
:
20px
;
textarea
{
width
:
50%
;
margin-left
:
20px
;
}
}
}
app/views/tree/edit.html.haml
View file @
02c83f12
.file-editor
.file_name
File:
%span
.file_name
=
@tree
.
path
.
force_encoding
(
'utf-8'
)
%br
=
form_tag
(
project_tree_path
(
@project
,
@id
),
:method
=>
:put
)
do
#editor
=
@tree
.
data
=
hidden_field_tag
'last_commit'
,
@last_commit
=
hidden_field_tag
'content'
.file_holder
.file_title
%i
.icon-file
=
@tree
.
path
.
force_encoding
(
'utf-8'
)
.file_content.code
#editor
=
@tree
.
data
.editor-commit-comment
=
label_tag
'text-commit'
do
%p
.slead
Commit message
=
text_area_tag
'text_commit'
=
submit_tag
"Save"
.form-actions
=
hidden_field_tag
'last_commit'
,
@last_commit
=
hidden_field_tag
'content'
=
submit_tag
"Save"
,
class:
'btn save-btn'
: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