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
Boxiang Sun
gitlab-ce
Commits
8fc9b5c0
Commit
8fc9b5c0
authored
Jan 12, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small UI improvement to snippet form
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
0253c949
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
app/assets/stylesheets/sections/snippets.scss
app/assets/stylesheets/sections/snippets.scss
+0
-11
app/views/projects/snippets/_form.html.haml
app/views/projects/snippets/_form.html.haml
+1
-1
No files found.
app/assets/stylesheets/sections/snippets.scss
View file @
8fc9b5c0
.snippet.file-holder
{
.file-title
{
.snippet-file-name
{
padding
:
4px
10px
;
position
:
relative
;
top
:
-4px
;
left
:
-4px
;
}
}
}
.my-snippets
li
:first-child
{
h4
{
margin-top
:
0
;
}
padding-top
:
0
;
...
...
app/views/projects/snippets/_form.html.haml
View file @
8fc9b5c0
...
...
@@ -18,7 +18,7 @@
.col-sm-10
.file-holder.snippet
.file-title
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'snippet-file-name'
,
required:
true
=
f
.
text_field
:file_name
,
placeholder:
"example.rb"
,
class:
'
form-control
snippet-file-name'
,
required:
true
.file-content.code
%pre
#editor
=
@snippet
.
content
=
f
.
hidden_field
:content
,
class:
'snippet-file-content'
...
...
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