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

      total = subjectStatus.reduce (pv, cv, i, arr) ->
        pv + cv.count
      , 0
      complete = subjectStatus[1].count # eh

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

module.exports = HomePage


REFRESH_INTERVAL = 1000 * 60 * 5

isDev = if !!~location.host.indexOf('demo') or +location.port > 1000 then true else false

class HomePage extends Controller
  className: 'home-page'
