Commit 8b6dba74 authored by Riyad Preukschas's avatar Riyad Preukschas

Reorder notes view elements

parent 8f9a450e
...@@ -106,8 +106,8 @@ var NoteList = { ...@@ -106,8 +106,8 @@ var NoteList = {
type: "GET", type: "GET",
url: this.notes_path, url: this.notes_path,
data: "?" + this.target_params, data: "?" + this.target_params,
complete: function(){ $('.status').removeClass("loading")}, complete: function(){ $('.notes-status').removeClass("loading")},
beforeSend: function() { $('.status').addClass("loading") }, beforeSend: function() { $('.notes-status').addClass("loading") },
dataType: "script"}); dataType: "script"});
}, },
...@@ -136,8 +136,8 @@ var NoteList = { ...@@ -136,8 +136,8 @@ var NoteList = {
type: "GET", type: "GET",
url: this.notes_path, url: this.notes_path,
data: "first_id=" + this.first_id + this.target_params, data: "first_id=" + this.first_id + this.target_params,
complete: function(){ $('.status').removeClass("loading")}, complete: function(){ $('.notes-status').removeClass("loading")},
beforeSend: function() { $('.status').addClass("loading") }, beforeSend: function() { $('.notes-status').addClass("loading") },
dataType: "script"}); dataType: "script"});
}, },
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
padding:0px; padding:0px;
} }
#new_notes_list li:last-child{ #notes-list li:last-child {
border-bottom:1px solid #aaa; border-bottom:1px solid #aaa;
} }
...@@ -71,6 +71,10 @@ ...@@ -71,6 +71,10 @@
} }
} }
.notes-status {
margin: 18px;
}
p.notify_controls input{ p.notify_controls input{
margin: 5px; margin: 5px;
......
%ul#notes-list
%ul#new_notes_list
.notes-status
- if can? current_user, :write_note, @project - if can? current_user, :write_note, @project
= render "notes/form" = render "notes/form"
.clear
%hr
%ul#new_notes_list
%ul#notes-list
.status
:javascript :javascript
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment