Add 'notes/reversed_notes_with_form' partial
This commit is contained in:
parent
e63d7b6029
commit
7563abbe49
3 changed files with 24 additions and 3 deletions
11
app/views/notes/_reversed_notes_with_form.html.haml
Normal file
11
app/views/notes/_reversed_notes_with_form.html.haml
Normal file
|
@ -0,0 +1,11 @@
|
|||
- 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)}");
|
||||
});
|
|
@ -1,2 +1,2 @@
|
|||
%div.wall_page
|
||||
= render "notes/notes_with_form", tid: nil, tt: "wall"
|
||||
= render "notes/reversed_notes_with_form", tid: nil, tt: "wall"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue