From 9c2e1e575871f1a3b9847923f1fb2edb556f4c50 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 24 Jul 2014 16:10:21 +0200 Subject: [PATCH] Moved to icons based on model. --- app/assets/javascripts/app/controllers/user_zoom.js.coffee | 2 +- app/assets/javascripts/app/models/user.js.coffee | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/user_zoom.js.coffee b/app/assets/javascripts/app/controllers/user_zoom.js.coffee index 60132a904..bc5a5befa 100644 --- a/app/assets/javascripts/app/controllers/user_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/user_zoom.js.coffee @@ -16,7 +16,7 @@ class App.UserZoom extends App.Controller url: @url() id: @user_id class: "" - iconClass: "user" + iconClass: @user.icon() if @user diff --git a/app/assets/javascripts/app/models/user.js.coffee b/app/assets/javascripts/app/models/user.js.coffee index 99b392957..fbe8c056a 100644 --- a/app/assets/javascripts/app/models/user.js.coffee +++ b/app/assets/javascripts/app/models/user.js.coffee @@ -33,6 +33,9 @@ class App.User extends App.Model uiUrl: -> '#user/zoom/' + @id + icon: (user) -> + "user icon" + @_fillUp: (data) -> # set socal media links