Highlight voting notes for issues and merge requests
This commit is contained in:
parent
0546b9c65f
commit
b8113334a8
5 changed files with 24 additions and 3 deletions
|
@ -6,4 +6,12 @@ module NotesHelper
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue