 BaseModalView           = require './views/basemodalview'
 HelpSupportModal        = require '../commonviews/helpsupportmodal'
 
-MarketingSnippetView    = require 'app/marketing/marketingsnippetview'
 ReadmeView              = require './environmentsmachinereadmeview'
 
 whoami                  = require 'app/util/whoami'

          callback null


  showRandomMarketingSnippet: ->

    { marketingController } = kd.singletons
    marketingController.getRandomSnippet @bound 'showMarketingSnippet'


  showMarketingSnippet: (snippet) ->

    return  unless snippet

    @marketingSnippet?.destroy()
    @marketingSnippet = new MarketingSnippetView snippet

    @container.addSubView @marketingSnippet
    @container.setClass 'marketing-message'


  initReadmeView: ->

    # Show only for custom teams and only for NotInitalized state


      @createProgressBar percentage
      @triggerEventTimer percentage

    else if @state is Terminated
      @label.destroy?()
      @createStateLabel if isKoding() then "
