From c030efc5c374ca9d593ae7341ef0aa18d6d4db85 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 6 Feb 2015 16:24:11 +0100 Subject: [PATCH] Added vip feature. --- app/assets/javascripts/app/models/user.js.coffee | 5 +++++ 1 file changed, 5 insertions(+) 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) ->