 
 REFRESH_INTERVAL = 1000 * 60 * 5
 
-isDev = if !!~location.host.indexOf 'demo' or +location.port > 1000 then true else false
+isDev = if !!~location.host.indexOf('demo') or +location.port > 1000 then true else false
 
 class HomePage extends Controller
   className: 'home-page'

  elements:
    '#user-count': 'userCount'
    '#classification-count': 'classificationCount'
    '#totalImages': 'totalImages'
    '#percent-complete': 'percentComplete'
  
  constructor: ->

      total = subjectStatus.reduce (pv, cv, i, arr) ->
        pv + cv.count
      , 0

      complete = 0
      for status in subjectStatus
        continue unless status is 'complete'
        complete = status.count

      @totalImages.html formatNumber total
      @percentComplete.html "#{ Math.ceil(complete / total) * 100 }%"

module.exports = HomePage
