 kd                  = require 'kd'
+remote              = require('app/remote').getInstance()
+timeago             = require 'timeago'
+showError           = require 'app/util/showError'
 ReferralCustomViews = require './referralcustomviews'
 
 

          max            : Math.max total, average
          current        : total
          color          : if total > average then 'green' else 'yellow'
        text             : "List referrals here"


  ReferralCustomViews.mixin @prototype

  buildViews: ({total, data})->

    average = 6
    total  /= 1000

    @addCustomViews
      container_top      :
