Merge branch 'update-votes-when-adding-notes' of https://github.com/riyad/gitlabhq into riyad-update-votes-when-adding-notes

This commit is contained in:
Dmitriy Zaporozhets 2012-09-18 08:56:54 +03:00
commit 2aafd7cf4e
6 changed files with 64 additions and 6 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