Commit 7563abbe49fc16280877be89342d552e0609d57c
1 parent
e63d7b60
Exists in
master
and in
4 other branches
Add 'notes/reversed_notes_with_form' partial
Showing
3 changed files
with
24 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/sections/notes.scss
| ... | ... | @@ -10,7 +10,10 @@ |
| 10 | 10 | padding:0px; |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | -#notes-list li:last-child { | |
| 13 | +#new-notes-list:not(.reversed) { | |
| 14 | + border-top:1px solid #aaa; | |
| 15 | +} | |
| 16 | +#new-notes-list.reversed { | |
| 14 | 17 | border-bottom:1px solid #aaa; |
| 15 | 18 | } |
| 16 | 19 | |
| ... | ... | @@ -48,7 +51,6 @@ |
| 48 | 51 | |
| 49 | 52 | .note { |
| 50 | 53 | padding: 8px 0; |
| 51 | - border-bottom: 1px solid #eee; | |
| 52 | 54 | overflow: hidden; |
| 53 | 55 | display: block; |
| 54 | 56 | img {float: left; margin-right: 10px;} |
| ... | ... | @@ -70,6 +72,14 @@ |
| 70 | 72 | .delete-note { display:block; } |
| 71 | 73 | } |
| 72 | 74 | } |
| 75 | +#notes-list:not(.reversed) .note, | |
| 76 | +#new-notes-list:not(.reversed) .note { | |
| 77 | + border-bottom: 1px solid #eee; | |
| 78 | +} | |
| 79 | +#notes-list.reversed .note, | |
| 80 | +#new-notes-list.reversed .note { | |
| 81 | + border-top: 1px solid #eee; | |
| 82 | +} | |
| 73 | 83 | |
| 74 | 84 | .notes-status { |
| 75 | 85 | margin: 18px; | ... | ... |
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | +- if can? current_user, :write_note, @project | |
| 2 | + = render "notes/common_form" | |
| 3 | + | |
| 4 | +%ul.reversed#new-notes-list | |
| 5 | +%ul.reversed#notes-list | |
| 6 | +.notes-status | |
| 7 | + | |
| 8 | +:javascript | |
| 9 | + $(function(){ | |
| 10 | + NoteList.init("#{tid}", "#{tt}", "#{project_notes_path(@project)}"); | |
| 11 | + }); | |
| 0 | 12 | \ No newline at end of file | ... | ... |
app/views/projects/wall.html.haml