Make notes for merge requests include commit notes and add helpers
This commit is contained in:
parent
dda852a0d5
commit
3f72af9994
4 changed files with 16 additions and 2 deletions
|
@ -7,6 +7,11 @@ module NotesHelper
|
|||
params[:loading_new].present?
|
||||
end
|
||||
|
||||
# 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
|
||||
|
||||
def note_vote_class(note)
|
||||
if note.upvote?
|
||||
"vote upvote"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue