2012-09-14 16:52:24 +02:00
|
|
|
module NotesHelper
|
|
|
|
def loading_more_notes?
|
|
|
|
params[:loading_more].present?
|
|
|
|
end
|
|
|
|
|
|
|
|
def loading_new_notes?
|
|
|
|
params[:loading_new].present?
|
|
|
|
end
|
2012-09-15 11:54:46 +02:00
|
|
|
|
2012-10-10 12:06:30 +02: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 11:54:46 +02:00
|
|
|
end
|
2012-09-14 16:52:24 +02:00
|
|
|
end
|