     showAutoTailWaitingDialog: ->
         vex.dialog.alert
             overlayClosesOnClick: false
-            message: autoTailWaitingTemplate 
+            message: autoTailWaitingTemplate
                 autoTailFilename: @autoTailFilename
             buttons: [
                 $.extend _.clone(vex.dialog.buttons.NO), text: 'Close'



    # Start polling for task changes, and check
    # Task History changes in case we need 
    # to back out of the file redirect 
    startAutoTailPolling: ->
        @showAutoTailWaitingDialog()
        @stopAutoTailPolling()

        @listenTo @history, 'reset', @handleHistoryReset
        @listenToOnce @activeTasks, 'add', @handleActiveTasksAdd

        @autoTailPollInterval = interval 2000, =>
            if @autoTailTaskFiles

        matchingTask = tasks.find (task) -> task.get('taskId').startedAt > timestamp
        if matchingTask
            $('.auto-tail-checklist').addClass 'waiting-for-file'
            @stopListening @activeTasks, 'reset'
            @autoTailTaskFiles = new TaskFiles [], taskId: matchingTask.get('id')

    handleActiveTasksAdd: (tasks) =>
        timestamp = @autoTailTimestamp
        matchingTask = tasks.find (task) -> task.get('taskId').startedAt > timestamp
        if matchingTask
            $('.auto-tail-checklist').addClass 'waiting-for-file'
            @autoTailTaskId = matchingTask.get('id')
            @autoTailTaskFiles = new TaskFiles [], taskId: @autoTailTaskId
            @stopListening @activeTasks, 'reset'
            @listenTo @autoTailTaskFiles, 'add', @handleTaskFilesAdd

    handleTaskFilesAdd: =>
        if @autoTailTaskFiles.findWhere({name: @autoTailFilename})
