diff --git a/app/assets/javascripts/app/models/user.js.coffee b/app/assets/javascripts/app/models/user.js.coffee index dc5911e21..ddea8b142 100644 --- a/app/assets/javascripts/app/models/user.js.coffee +++ b/app/assets/javascripts/app/models/user.js.coffee @@ -61,6 +61,8 @@ class App.User extends App.Model if !@image || @image is 'none' return @uniqueAvatar(size, placement, cssClass) else + if @vip + cssClass += "#{cssClass} vip" "" uniqueAvatar: (size = 40, placement = '', cssClass = '', avatar) -> @@ -80,6 +82,9 @@ class App.User extends App.Model data = "data-id=\"#{@id}\"" else data = "data-avatar-id=\"#{avatar.id}\"" + + if @vip + cssClass += "#{cssClass} vip" "#{ @initials() }" @_fillUp: (data) ->