       placement : 'above'
       sticky    : yes
 
-
-
     @addSubView new kd.CustomHTMLView
       tagName  : 'i'
       cssClass : 'icon help'

  handleCollaborationStarted: (options) ->

    if @share
      @share.setClass      'active red'
      @share.unsetClass    'loading not-started green'
      @share.updatePartial 'END COLLABORATION'
    @video.show()
    @video.setAttribute 'href', "http://appear.in/koding-#{options.channelId}"


kd                        = require 'kd'
globals                   = require 'globals'
nick                      = require 'app/util/nick'
CustomLinkView            = require 'app/customlinkview'
HelpSupportModal          = require 'app/commonviews/helpsupportmodal'
IDEStatusBarAvatarView    = require './idestatusbaravatarview'
isSoloProductLite         = require 'app/util/issoloproductlite'
isPlanFree                = require 'app/util/isPlanFree'
isKoding                  = require 'app/util/isKoding'
ButtonViewWithProgressBar = require 'app/commonviews/buttonviewwithprogressbar'

PROGRESS_DELAYS             = [
    { delay : 500,  progress : 15 }
    { delay : 1500, progress : 30 }
    { delay : 2500, progress : 75 }
    { delay : 3250, progress : 90 }
  ]

module.exports = class IDEStatusBar extends kd.View

  constructor: (options = {}, data) ->

    options.cssClass = 'IDE-StatusBar'

    super options, data

    @participantAvatars = {}
    @avatarTimers       = {}

    @on 'ShowAvatars',                 @bound 'showAvatars'
    @on 'ParticipantLeft',             @bound 'dimParticipantAvatar'
    @on 'ParticipantJoined',           @bound 'addParticipantAvatar'
    @on 'CollaborationLoading',        @bound 'handleCollaborationLoading'
    @on 'CollaborationEnded',          @bound 'handleCollaborationEnded'
    @on 'CollaborationStarted',        @bound 'handleCollaborationStarted'
    @on 'ParticipantWatched',          @bound 'decorateWatchedAvatars'
    @on 'ParticipantUnwatched',        @bound 'decorateUnwatchedAvatars'

    { mainController, router, appManager } = kd.singletons

