Application.Directives.directive('provenanceWizardSteps', provenanceWizardStepsDirective);

function provenanceWizardStepsDirective() {
    return {
        scope: {
            template: "=",
            showOverview: "="
        },
        controller: "provenanceWizardStepsDirectiveController",
        restrict: "EA",
        templateUrl: "application/core/projects/directives/provenance/provenance-wizard-steps.html"
    };
}

Application.Controllers.controller('provenanceWizardStepsDirectiveController',
                                   ["$scope", provenanceWizardStepsDirectiveController]);
function provenanceWizardStepsDirectiveController($scope) {
    function templateStepsCount() {
        if (!$scope.template) {
            return 0;
        }

        console.dir($scope.template);
        var count = $scope.template.input_templates.length;
        count += ($scope.template.required_input_files ? 1 : 0);
        count += $scope.template.output_templates.length;
        count += ($scope.template.required_output_files ? 1 : 0);
        console.log("count = " + count);
        return count;
    }

    $scope.offsetSteps = function() {
        return templateStepsCount() == 4;
    };
}

@@ -759,46 +759,8 @@
  %7D%0A%0A
-        console.dir($scope.template);%0A
     
@@ -1008,49 +1008,8 @@
 0);%0A
-        console.log(%22count = %22 + count);%0A
     

Remove console statements.