module NotesHelper

Public Instance Methods

loading_more_notes?() click to toggle source
# File app/helpers/notes_helper.rb, line 2
def loading_more_notes?
  params[:loading_more].present?
end
loading_new_notes?() click to toggle source
# File app/helpers/notes_helper.rb, line 6
def loading_new_notes?
  params[:loading_new].present?
end
note_for_main_target?(note) click to toggle source

Helps to distinguish e.g. commit notes in mr notes list

# File app/helpers/notes_helper.rb, line 11
def note_for_main_target?(note)
  !@mixed_targets || @main_target_type == note.noteable_type
end