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
{
.file-editor
{
#editor
{
#editor
{
height
:
500px
;
height
:
500px
;
width
:
9
0%
;
width
:
10
0%
;
position
:
relative
;
position
:
relative
;
margin-bottom
:
20px
;
}
}
textarea
{
.editor-commit-comment
{
display
:
block
;
padding-top
:
20px
;
width
:
40%
;
textarea
{
margin
:
10px
0
10px
0
;
width
:
50%
;
margin-left
:
20px
;
}
}
}
}
}
app/views/tree/edit.html.haml
View file @
02c83f12
.file-editor
.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
=
form_tag
(
project_tree_path
(
@project
,
@id
),
:method
=>
:put
)
do
#editor
.file_holder
=
@tree
.
data
.file_title
=
hidden_field_tag
'last_commit'
,
@last_commit
%i
.icon-file
=
hidden_field_tag
'content'
=
@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'
=
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
:javascript
var
editor
=
ace
.
edit
(
"
editor
"
);
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