Highlight voting notes for issues and merge requests

This commit is contained in:
Riyad Preukschas 2012-09-15 11:54:46 +02:00
parent 0546b9c65f
commit b8113334a8
5 changed files with 24 additions and 3 deletions

View file

@ -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