17 lines
286 B
Ruby
17 lines
286 B
Ruby
module NotesHelper
|
|
def loading_more_notes?
|
|
params[:loading_more].present?
|
|
end
|
|
|
|
def loading_new_notes?
|
|
params[:loading_new].present?
|
|
end
|
|
|
|
def note_vote_class(note)
|
|
if note.upvote?
|
|
"vote upvote"
|
|
elsif note.downvote?
|
|
"vote downvote"
|
|
end
|
|
end
|
|
end
|