2012-09-14 10:52:24 -04:00
|
|
|
module NotesHelper
|
|
|
|
def loading_more_notes?
|
|
|
|
params[:loading_more].present?
|
|
|
|
end
|
|
|
|
|
|
|
|
def loading_new_notes?
|
|
|
|
params[:loading_new].present?
|
|
|
|
end
|
2012-09-15 05:54:46 -04:00
|
|
|
|
2012-10-10 06:06:30 -04:00
|
|
|
# Helps to distinguish e.g. commit notes in mr notes list
|
|
|
|
def note_for_main_target?(note)
|
|
|
|
!@mixed_targets || @main_target_type == note.noteable_type
|
|
|
|
end
|
|
|
|
|
2012-09-15 05:54:46 -04:00
|
|
|
end
|
2012-09-14 10:52:24 -04:00
|
|
|
end
|