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:
commit
2aafd7cf4e
6 changed files with 64 additions and 6 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