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
Kazuhiko Shiozaki
gitlab-ce
Commits
8ffb6126
Commit
8ffb6126
authored
Aug 09, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slim comment form
parent
a76adfa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
18 deletions
+29
-18
app/assets/stylesheets/sections/notes.scss
app/assets/stylesheets/sections/notes.scss
+22
-14
app/views/notes/_form.html.haml
app/views/notes/_form.html.haml
+7
-4
No files found.
app/assets/stylesheets/sections/notes.scss
View file @
8ffb6126
...
@@ -169,30 +169,38 @@ td .line_note_link {
...
@@ -169,30 +169,38 @@ td .line_note_link {
margin
:
0
;
margin
:
0
;
}
}
.file_upload
{
position
:
absolute
;
right
:
14px
;
top
:
7px
;
}
.note_advanced_opts
{
.note_advanced_opts
{
h6
{
h6
{
line-height
:
32px
;
line-height
:
32px
;
margin-right
:
12
px
;
padding-right
:
15
px
;
}
}
}
}
div
.attachments
{
.attachments
{
position
:relative
;
position
:relative
;
width
:
350px
;
width
:
350px
;
height
:
50px
;
height
:
50px
;
overflow
:hidden
;
overflow
:hidden
;
margin
:
0
0
5px
!
important
;
margin
:
0
0
5px
!
important
;
}
.file_name
{
.input_file
{
line-height
:
30px
;
.file_upload
{
width
:
240px
;
position
:
absolute
;
height
:
28px
;
right
:
14px
;
overflow
:hidden
;
top
:
7px
;
}
.file_name
{
line-height
:
30px
;
width
:
240px
;
height
:
28px
;
overflow
:hidden
;
}
.input-file
{
width
:
260px
;
height
:
41px
;
float
:
right
;
}
}
}
}
}
}
app/views/notes/_form.html.haml
View file @
8ffb6126
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
is enabled.
is enabled.
.row.note_advanced_opts.hide
.row.note_advanced_opts.hide
.span2
=
f
.
submit
'Add Comment'
,
:class
=>
"btn primary submit_note"
,
:id
=>
"submit_note"
.span4.notify_opts
.span4.notify_opts
%h6
.left
Notify via email:
%h6
.left
Notify via email:
=
label_tag
:notify
do
=
label_tag
:notify
do
...
@@ -23,11 +25,12 @@
...
@@ -23,11 +25,12 @@
=
label_tag
:notify_author
do
=
label_tag
:notify_author
do
=
check_box_tag
:notify_author
,
1
,
@note
.
noteable_type
==
"Commit"
=
check_box_tag
:notify_author
,
1
,
@note
.
noteable_type
==
"Commit"
%span
Commit author
%span
Commit author
.span
8
.attachments
.span
6
.attachments
%h6
.left
Attachment:
%h6
.left
Attachment:
%span
.file_name
File name...
%span
.file_name
File name...
%button
.file_upload.btn.small
Upload File
.input
=
f
.
file_field
:attachment
,
:class
=>
"input-file"
.input.input_file
%a
.file_upload.btn.small
Upload File
=
f
.
file_field
:attachment
,
:class
=>
"input-file"
%span
.hint
Any file less than 10 MB
%span
.hint
Any file less than 10 MB
=
f
.
submit
'Add Comment'
,
:class
=>
"btn primary submit_note"
,
:id
=>
"submit_note"
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