             $http.put($scope.project.resource_uri, $scope.project)
         , true
 
-
     TaskCtrl = ($scope, $http, $routeParams, ngProgress, favicoService) ->
         ### Single task controller ###
         ngProgress.start()
-        $scope.isAuthenticated = window.isAuthenticated
         taskUrl = _.sprintf '/api/v1/tasks/task/%s/', $routeParams['pk']
 
         $http.get(taskUrl).success (data) =>

        $scope.successPercent = window.successTasks
        $scope.failedPercent = window.failedTasks
    module.controller 'IndexCtrl', [
        '$scope', IndexCtrl,
    ]

    DashboardCtrl = ($scope, $http, ngProgress, Tasks) ->
        ### Dashboard controller ###
        if not window.isAuthenticated
            window.location = '#'

        ngProgress.start()
        $http.get(
            '/api/v1/projects/project/?limit=0&with_success_percent=true&with_last_task=true'

        'coviolations.directives'
    ]

    IndexCtrl = ($scope, favicoService) ->
        ### Index page controller ###
        if window.isAuthenticated
            window.location = '#'

        favicoService.badge(0)
        $scope.successColor = "#5cb85c"
        $scope.failedColor = "#d9534f"
        $scope.chartData =
