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
Jérome Perrin
gitlab-ce
Commits
7563abbe
Commit
7563abbe
authored
Sep 14, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'notes/reversed_notes_with_form' partial
parent
e63d7b60
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
app/assets/stylesheets/sections/notes.scss
app/assets/stylesheets/sections/notes.scss
+12
-2
app/views/notes/_reversed_notes_with_form.html.haml
app/views/notes/_reversed_notes_with_form.html.haml
+11
-0
app/views/projects/wall.html.haml
app/views/projects/wall.html.haml
+1
-1
No files found.
app/assets/stylesheets/sections/notes.scss
View file @
7563abbe
...
@@ -10,7 +10,10 @@
...
@@ -10,7 +10,10 @@
padding
:
0px
;
padding
:
0px
;
}
}
#notes-list
li
:last-child
{
#new-notes-list
:not
(
.reversed
)
{
border-top
:
1px
solid
#aaa
;
}
#new-notes-list
.reversed
{
border-bottom
:
1px
solid
#aaa
;
border-bottom
:
1px
solid
#aaa
;
}
}
...
@@ -48,7 +51,6 @@
...
@@ -48,7 +51,6 @@
.note
{
.note
{
padding
:
8px
0
;
padding
:
8px
0
;
border-bottom
:
1px
solid
#eee
;
overflow
:
hidden
;
overflow
:
hidden
;
display
:
block
;
display
:
block
;
img
{
float
:
left
;
margin-right
:
10px
;}
img
{
float
:
left
;
margin-right
:
10px
;}
...
@@ -70,6 +72,14 @@
...
@@ -70,6 +72,14 @@
.delete-note
{
display
:block
;
}
.delete-note
{
display
:block
;
}
}
}
}
}
#notes-list
:not
(
.reversed
)
.note
,
#new-notes-list
:not
(
.reversed
)
.note
{
border-bottom
:
1px
solid
#eee
;
}
#notes-list
.reversed
.note
,
#new-notes-list
.reversed
.note
{
border-top
:
1px
solid
#eee
;
}
.notes-status
{
.notes-status
{
margin
:
18px
;
margin
:
18px
;
...
...
app/views/notes/_reversed_notes_with_form.html.haml
0 → 100644
View file @
7563abbe
-
if
can?
current_user
,
:write_note
,
@project
=
render
"notes/common_form"
%ul
.reversed
#new-notes-list
%ul
.reversed
#notes-list
.notes-status
:javascript
$
(
function
(){
NoteList
.
init
(
"
#{
tid
}
"
,
"
#{
tt
}
"
,
"
#{
project_notes_path
(
@project
)
}
"
);
});
\ No newline at end of file
app/views/projects/wall.html.haml
View file @
7563abbe
%div
.wall_page
%div
.wall_page
=
render
"notes/notes_with_form"
,
tid:
nil
,
tt:
"wall"
=
render
"notes/
reversed_
notes_with_form"
,
tid:
nil
,
tt:
"wall"
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